Commit e6717c913e for bind
commit e6717c913efdeae5cb6a665975cdf217618d305f
Author: Štěpán Balážik <stepan@isc.org>
Date: Mon Oct 19 18:19:16 2026 +0200
Drop the REFUSED answer to NSEC queries without CD
The resolver asks for the forged NSECs only with CD set, so no query
ever reached the handler that refused them otherwise.
Assisted-by: Claude:claude-fable-5-1
diff --git a/bin/tests/system/nsec_synthesis/ans1/ans.py b/bin/tests/system/nsec_synthesis/ans1/ans.py
index 8a93bc33bc..b8ed03a942 100644
--- a/bin/tests/system/nsec_synthesis/ans1/ans.py
+++ b/bin/tests/system/nsec_synthesis/ans1/ans.py
@@ -15,7 +15,6 @@ import dns.rcode
import dns.rdatatype
from isctest.asyncserver import AsyncDnsServer
-from isctest.asyncserver.handlers import StaticResponseHandler
from isctest.asyncserver.matchers import Flags, Qname, Qtype
from ..nsec_synthesis_ans import AttackNsecHandler
@@ -47,21 +46,12 @@ class AttackNodataNsecHandler(AttackNsecHandler):
key_tag = 9999
-class RefusedNsecHandler(StaticResponseHandler):
- matcher = Qname("attacker.f004.test.", "victim.f004.test.") & Qtype(
- dns.rdatatype.NSEC
- )
- rcode = dns.rcode.REFUSED
- authoritative = True
-
-
def main() -> None:
server = AsyncDnsServer(default_rcode=dns.rcode.NOERROR)
server.install_response_handlers(
AttackCoveringNsecHandler(),
AttackNodataNsecHandler(),
)
- server.install_response_handlers(RefusedNsecHandler())
server.run()