Bugs: Browse | Submit New | Admin

[#29813] Request's RD is overwritten when sending a message to root server with RD=false

Date:
2013-10-18 19:35
Priority:
3
Submitted By:
Keith Bennett (keithrbennett)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Request's RD is overwritten when sending a message to root server with RD=false

Detailed description
When sending a message to a root server (e.g. a.root-servers.net) with RD=false, the RD flag *in the request* is overwritten
in the process of sending the request to the nameserver.  The RD flag in the response is also incorrectly set to true,
but this may be merely a result of the overwritten flag in the request.

After using pry to debug this in the dnsruby gem, it seemed that the value was being changed in the ResolverRuby callback,
but we didn't get further than that.

An equivalent request using:

dig @a.root-servers.net dell.com +norecurse

produced a result that did not have the rd flag set.

----

(This issue was discovered and investigated by my colleague Aruna Thesia; I helped with further investigation, writing
this report and modifying somewhat the sample code.)

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
rd.rb Script illustrating the issue and including message hex dumps. Download

Changes:

Field Old Value Date By
File Added6898: rd.rb2013-10-18 19:35keithrbennett