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: add mechanism to dump DNS strategy #11322

Closed
bradfitz opened this issue Jun 22, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@bradfitz
Copy link
Member

commented Jun 22, 2015

In Go 1.5, the net package will prefer to do its own DNS lookups, rather than using cgo if the nsswitch.conf and resolv.conf files (which are now parsed) permit.

Users will inevitably find problems with DNS resolution (as they have in every release in the past: whether it's with fd exhaustion, or the results themselves), and we'll need a way to debug which of the two paths users' code is going. We don't have such a mechanism now.

Perhaps a GODEBUG environment variable key ("GODEBUG=netdns=1") which causes the net package to print its decisions about how it'll do DNS, at least the first time.

@bradfitz bradfitz self-assigned this Jun 22, 2015

@bradfitz bradfitz added this to the Go1.5 milestone Jun 22, 2015

@gopherbot

This comment has been minimized.

Copy link

commented Jun 29, 2015

CL https://golang.org/cl/11584 mentions this issue.

@bradfitz bradfitz closed this in b615ad8 Jul 9, 2015

@golang golang locked and limited conversation to collaborators Jul 11, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.