You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cat /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
Names obtained from the DNS system are rooted and have a trailing dot. Names obtained from /etc/hosts should not.
This is a partial regression from Go 1.5 and should be fixed for Go 1.6.
It looks like Go 1.5 was inconsistent based on what routines were being used:
$ GODEBUG=netdns=go go1.5 run /tmp/x.go
[localhost] <nil>
$ GODEBUG=netdns=cgo go1.5 run /tmp/x.go
[localhost.] <nil>
and now netdns=go has been changed to match netdns=cgo:
$ GODEBUG=netdns=go go run /tmp/x.go
[localhost.] <nil>
$ GODEBUG=netdns=cgo go run /tmp/x.go
[localhost.] <nil>
I'm not sure that's the right fix.
The text was updated successfully, but these errors were encountered:
…9 and Windows
This change applies the fix for #13564 to Plan 9 and Windows.
Also enables Lookup API test cases on builders.
Updates #13564.
Change-Id: I863f03c7cb6fbe58b3a55223bfa0ac5f9bf9c3df
Reviewed-on: https://go-review.googlesource.com/18559
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Here is a program:
When run, it prints:
This is incorrect, given this /etc/hosts:
Names obtained from the DNS system are rooted and have a trailing dot. Names obtained from /etc/hosts should not.
This is a partial regression from Go 1.5 and should be fixed for Go 1.6.
It looks like Go 1.5 was inconsistent based on what routines were being used:
and now netdns=go has been changed to match netdns=cgo:
I'm not sure that's the right fix.
The text was updated successfully, but these errors were encountered: