Closed
Description
What version of Go are you using (go version
)?
go version go1.11 darwin/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env
)?
Can be reproduced on any darwin.
What did you do?
Tried to debug some DNS issues on our production system.
In order to do this I tried to run code with GODEBUG=netdns=go+2
and GODEBUG=netdns=cgo+2
on my local Mac.
What did you expect to see?
Go runtime will use cgo or go resolver according to GODEBUG
env variable.
What did you see instead?
Runtime silently used cgo
resolver every time.
Also despite this comment I don't see any popups after I removed this check.
Can we put darwin check before if confVal.dnsDebugLevel > 0
and use go resolver on darwin if user explicitly asked for it?
If there are no objections I will create CL.