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
@mhaley-tignis This issue is really about behavior on Linux. The resolver issues on macOS are quite different and are best handled elsewhere. In general on macOS, as far as I know, there is no way to combine CGO_ENABLED=0 and /etc/resolver. You have to pick one or the other.
@ianlancetaylor what did you mean by "best handled elsewhere"? Did you mean open a new ticket, or is there a different way to resolve domains on MacOS so that this problem is not encountered?
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I ran a simple program building it with
CGO_ENABLED=1
andCGO_ENABLED=0
https://go.dev/play/p/kxxT6pToEDC
What did you expect to see?
I expected domain names to be resolved the same way in both cases.
What did you see instead?
When
CGO_ENABLED=0
is set, the/etc/resolver
config is ignored by the resolver.The text was updated successfully, but these errors were encountered: