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

net: builtin DNS stub resolver behaves case sensitive and gives "no such host" #9215

gopherbot opened this issue Dec 6, 2014 · 2 comments


Copy link

@gopherbot gopherbot commented Dec 6, 2014

by russmackdev:

What does 'go version' print?
go version go1.4rc2 linux/amd64

What steps reproduce the problem?
If possible, include a link to a program on


What happened?
Some DNS responses are capitalised eg:
&{{ 1 1 153 4} 2915202115}
The comparison with lowercase name fails resulting in "no such host".

What should have happened instead?
The comparison should not fail, and the host should be acknowledged as found.

Please provide any additional information below.
Patch attached.


  1. dnsclient.go.patch (166 bytes)
Copy link

@ianlancetaylor ianlancetaylor commented Dec 11, 2014

For the record, the string comparison in question is in net/dnsclient.go in the function answer.

Copy link

@mikioh mikioh commented Dec 11, 2014

@bradfitz bradfitz modified the milestone: Go1.5 Dec 16, 2014
@mikioh mikioh changed the title net: dnsclient.go header name is sometimes uppercase - gives "no such host" net: builtin DNS stub resolver behaves case sensitive and gives "no such host" Dec 20, 2014
@mikioh mikioh closed this in 826fa06 Feb 3, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.