-
Hi, Describe To reproduce
python3 dns_server.py
Then use the conmand to start it:
AAAA:
A:
CERT:
Return packets with qtype AAAA have a RCODE of 0(status: NOERROR), but return packets with qtype A and TXT have a RCODE of 2(status: SERVFAIL). Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
To answer your question: Look at line 1681 in if(in->len == 7 && qtype == RR_AAAA) { /* Blank packet */
return dwx_synth_notthere(query);
} Why is this code here? Because, back in 2011, if you sent an AAAA query to This had the side effect of making For further discussion for why I added this code: https://samiam.org/blog/20110415.html If this code is causing any issues here in 2022, let me know. It was a fix for DNS servers handling |
Beta Was this translation helpful? Give feedback.
-
As an aside, since you recently asked about ANY queries: I have fixed that bug. Deadwood now responds to ANY queries in a RFC8482 compliant manner, because of the security implications with using a pre-RFC8482 response to ANY. |
Beta Was this translation helpful? Give feedback.
-
I have disabled this code in commit 83989e6 after checking to make sure the site with issues in 2010 no longer has issues with |
Beta Was this translation helpful? Give feedback.
-
OK, this is resolved. Locking conversation. |
Beta Was this translation helpful? Give feedback.
To answer your question: Look at line 1681 in
DwRecurse.c
:Why is this code here?
Because, back in 2011, if you sent an AAAA query to
archive.org
(andchase.com
as I recall), it would respond withserver fail
. Thisserver fail
would gum things up when trying to resolve the domain name on a mixed IPv4 and IPv6 network, so I added the above code to make AAAA replies returnnot there
instead in the specific case of an AAAA query when getting a bad reply upstream. This way, the downstream resolver would know the server didn’t have AAAA, and then try an A query.This ha…