-
I have created the following template to get NODATA responses (RCODE NOERROR) on CH class queries for "version.bind. TXT. If I send the query with query class IN I get the expected response, but when I send the query with query class CH I get RCODE REFUSED. How could I create the response I am looking for? Configuration used:
Expected response, but with wrong query class (IN instead of CH):
Unexpected RCODE and missing data in authority section when query class is CH:
Secondly, I have tried to set RCODE to NXDOMAIN, but I still get REFUSED instead of expected NXDOMAIN and nothing in the authority section. I want to clarify why I want the specific behavior. I work with Zonemaster, which is a test tool for DNS zones. To test the test code we need test zones that can confirm that the code does it correctly. Zonemaster checks for CH class version strings under version.bind and version.server, and we need zones matching different scenarios.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Have you tried using the chaos plugin instead of template? |
Beta Was this translation helpful? Give feedback.
-
CHAOS class is enabled only when you use any of the plugins listed here coredns/core/dnsserver/server.go Lines 450 to 455 in 4c60f95 Otherwise coredns responds with REFUSED to all CH queries |
Beta Was this translation helpful? Give feedback.
CHAOS class is enabled only when you use any of the plugins listed here
coredns/core/dnsserver/server.go
Lines 450 to 455 in 4c60f95
Otherwise coredns responds with REFUSED to all CH queries