Issue 9215 in go: net: dnsclient.go header name is sometimes uppercase - gives "no such host"

11 views
Skip to first unread message

g...@googlecode.com

unread,
Dec 6, 2014, 9:01:34 AM12/6/14
to golan...@googlegroups.com
Status: New
Owner: ----

New issue 9215 by russmack...@gmail.com: net: dnsclient.go header name is
sometimes uppercase - gives "no such host"
https://code.google.com/p/go/issues/detail?id=9215

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 play.golang.org.

1. http://play.golang.org/p/0kQQT1Qz40

What happened?
Some DNS responses are capitalised eg:
&{{www4.L.GOOGLE.com. 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.


Attachments:
dnsclient.go.patch 166 bytes

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages