mirror of
https://github.com/fergalmoran/DnsServer.git
synced 2026-01-06 08:45:32 +00:00
Filter AAAA: allow modification of unsigned responses for DNSSEC-aware
clients Fixes #1105
This commit is contained in:
@@ -116,7 +116,16 @@ namespace FilterAaaa
|
||||
return response;
|
||||
|
||||
if (request.DnssecOk)
|
||||
return response;
|
||||
{
|
||||
foreach (DnsResourceRecord record in response.Answer)
|
||||
{
|
||||
if (record.Type == DnsResourceRecordType.RRSIG)
|
||||
{
|
||||
//response is signed and the client is DNSSEC aware; must not be modified
|
||||
return response;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (response.RCODE != DnsResponseCode.NoError)
|
||||
return response;
|
||||
|
||||
Reference in New Issue
Block a user