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: LookupHost and LookupAddr should recognize host name databases such as /etc/hosts? #6824

mikioh opened this issue Nov 23, 2013 · 1 comment


Copy link

@mikioh mikioh commented Nov 23, 2013

Currently both LookupHost and LookupAddr ignores local entries when CGO lookup functions
succeed. Unfortunately it seems that getaddrinfo on latest Darwin (OS X Mavericks) never
returns an entry of "localhost, [::1]" for some reasons. Should we make the
resolver functions more CGO-buildin hybrid?
Copy link
Contributor Author

@mikioh mikioh commented Nov 23, 2013

Comment 1:

Nope, they implemented more fancy getaddrinfo which is aware of routing information.
When there is no global IPv6 reachability, the function returns only IPv4-related
records, hm.

Status changed to Retracted.

This issue was closed.
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
2 participants