Skip to content
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

Setting MsgHeader.RecursionDesired before calling SetQuestion causes value to be overwritten #196

Closed
aeden opened this issue Mar 25, 2015 · 5 comments

Comments

@aeden
Copy link

aeden commented Mar 25, 2015

msg.Question = make([]dns.Question, 1)
msg.SetQuestion(dns.Fqdn(qname), qtype)
msg.MsgHdr.RecursionDesired = false

The RecursionDesired flag is false

msg.Question = make([]dns.Question, 1)
msg.MsgHdr.RecursionDesired = false
msg.SetQuestion(dns.Fqdn(qname), qtype)

The RecursionDesired flag is true.

@aeden
Copy link
Author

aeden commented Mar 25, 2015

Random bit of knowledge: the .io name servers timeout if you attempt to call them with RD=1. True story.

@miekg
Copy link
Owner

miekg commented Mar 25, 2015

Yes, by design, but I see how this is not helpful. Extra documentation would help, not sure if I want to remove setting the header bits in SetQuestion.

miekg added a commit that referenced this issue Mar 25, 2015
@miekg
Copy link
Owner

miekg commented May 7, 2015

This is basically WAI.

@miekg miekg closed this as completed May 7, 2015
@aeden
Copy link
Author

aeden commented May 7, 2015

Just for my edification, what does WAI stand for?

@miekg
Copy link
Owner

miekg commented May 7, 2015

[ Quoting [email protected] in "Re: [dns] Setting MsgHeader.Recursi..." ]

Just for my edification, what does WAI stand for?

Work As Intented (After I updated the docs that is :) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants