-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange "bad rdata" #234
Comments
[ Quoting notifications@github.com in "[dns] Strange "bad rdata" (#234)..." ]
Yep, interesting. /Miek Miek Gieben |
@miekg Isn't it? Reading the source code, it seems "bad rdata" can be sent only for compression errors (which explain why I see nothing, I'm dumb when it comes to DNS compression) but why no other program; complain? |
[ Quoting notifications@github.com in "Re: [dns] Strange "bad rdata" (#234..." ]
On of the 2 bit labels in one of the name is not valid: it will make the error /Miek Miek Gieben |
I can also report to the people who manage the server if you tell me which name is incorrect. |
[ Quoting notifications@github.com in "Re: [dns] Strange "bad rdata" (#234..." ]
Can you attached the pcap to this bug? Something, somewhere is weird, but I have My code seems to go off the rails early in the packet: % ./q @2001:1608:10:167:32e::53 SOA . /Miek Miek Gieben |
@miekg Apparently no, I cannot "Unfortunately, we don’t support that file type. Try again with a PNG, GIF, JPG. " |
Just a different data point. If I run this same query, capture the packet trace with tcpdump, and feed it to "dnsrend", dnsrend manages to dissect the reply without barfing. |
@aabdnn By the way, the problem seems related to Knot (only happens with Knot name servers) but only 2.0 (k-root, which uses Knot 1.6, does not show the issue). |
[ Quoting notifications@github.com in "[dns] Strange "bad rdata" (#234)..." ]
Looking at the pcap you send privately I see:
Anyway I don't seem to deal well with those. /Miek Miek Gieben |
@miekg Compressing . (a zero-length label) is a good idea :-) |
[ Quoting notifications@github.com in "Re: [dns] Strange "bad rdata" (#234..." ]
Yeah, it seems to point to a strange place, offset = 12, which is 00 by /Miek Miek Gieben |
offset = 12 btw, which is legit. It points to the root label of the question section. |
I confirm it works fine now, thanks. |
[ Quoting notifications@github.com in "Re: [dns] Strange "bad rdata" (#234..." ]
cool and thanks for reporting. This was a fun one. |
@miekg Did you make a formal bug report or do you prefer me to handle it? |
[ Quoting notifications@github.com in "Re: [dns] Strange "bad rdata" (#234..." ]
If you can handle it, yes please. Don't have enough time for this.. :) |
Thank you for debugging this and notifying us. |
Might have returned since latest pull to fix a boatload of issues - need to double check. |
Still works OK
|
When querying the name server yeti-dns01.dnsworkshop.org / 2001:1608:10:167:32e::53 for "SOA ." (it is part of the Yeti root testbed), Exchange() returns a "bad rdata" error. dig, drill and kdig see nothing abnormal. Using Wireshark on the pcap, I did not find a problem either. Bug in the dns package?
Here is a test with q (in exdns):
The text was updated successfully, but these errors were encountered: