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: export GODEBUG=netdns=cgo doesn't force to use cgo DNS resolver #11816

Closed
mikioh opened this issue Jul 22, 2015 · 3 comments
Closed

net: export GODEBUG=netdns=cgo doesn't force to use cgo DNS resolver #11816

mikioh opened this issue Jul 22, 2015 · 3 comments
Milestone

Comments

@mikioh
Copy link
Contributor

mikioh commented Jul 22, 2015

On Linux, built with CGO_ENABLED=1,

% cd $GOROOT/src/net
% export GODEBUG=netdns=2+cgo
% go test -v -run=GoogleIP
=== RUN   TestLookupGoogleIP
go package net: dynamic selection of DNS resolver
go package net: hostLookupOrder(google.com) = files,dns
go package net: hostLookupOrder(google.com) = files,dns
--- PASS: TestLookupGoogleIP (0.01s)
@mikioh mikioh added this to the Go1.5Maybe milestone Jul 22, 2015
@mikioh
Copy link
Contributor Author

mikioh commented Jul 22, 2015

/cc @bradfitz

@rsc
Copy link
Contributor

rsc commented Jul 22, 2015

This does seem worth doing. It would mean that there are really three settings: auto, go, and cgo.

@gopherbot
Copy link

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

@mikioh mikioh modified the milestones: Go1.5, Go1.5Maybe Jul 23, 2015
@golang golang locked and limited conversation to collaborators Aug 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants