TechnitiumSoftware / DnsServer

Technitium DNS Server
https://technitium.com/dns/
GNU General Public License v3.0
3.86k stars 401 forks source link

Records below delegation are not ignored #749

Closed SivaKesava1 closed 8 months ago

SivaKesava1 commented 9 months ago

Hello,

This issue was discovered with test case 156

The test zone file is:

www.www.                      500 IN SOA    ns1.outside.edu. root.campus.edu. 3 604800 86400 2419200 604800
www.www.                      500 IN NS     ns1.outside.edu.
bar.www.www.                      500 IN NS     bankcard.net.mybankcard.email.
*.bar.www.www.                    500 IN CNAME  uni.www.
uni.bar.www.www.                  500 IN DNAME  www.www.

The response for the query <example.bar.www.www., DNAME> from Technitium server is:

          "opcode QUERY",
          "rcode NOERROR",
          "flags QR AA RA",
          ";QUESTION",
          "example.bar.www.www. IN DNAME",
          ";ANSWER",
          "example.bar.www.www. 500 IN CNAME uni.www.",
          ";AUTHORITY",
          ";ADDITIONAL"

whereas the response from others was:

          "opcode QUERY",
          "rcode NOERROR",
          "flags QR",
          ";QUESTION",
          "example.bar.www.www. IN DNAME",
          ";ANSWER",
          ";AUTHORITY",
          "bar.www.www. 500 IN NS bankcard.net.mybankcard.email.",
          ";ADDITIONAL"

According to RFC 2181, any data below the zone cut should not appear on the parent side. The records below the delegation cut should be ignored. This issue has been fixed by other implementations.

ShreyasZare commented 9 months ago

Thanks for the feedback. Will get this fixed soon.

ShreyasZare commented 8 months ago

Thanks again for the report. Technitium DNS Server v11.5.2 is now available that fixes this issue. Do update and let me know your feedback.