Re:Golang is evil on shitty networks
by alecthomas on Thursday December 29, 2022 @10:17PM
(#34181391)
Not to understate the impact of the bug, but this is not the default for Go. It is used if CGo is disabled, as the issue you linked to describes.
That is the default for Go if cross-compiled, however, and most software compiled on a CI server is cross-compiled to Darwin.
Fortunately Go 1.20 fixes this, using the system resolved even without CGo on Darwin platforms [1].
The Go IPv6 DNS resolution on MacOS can cause all DNS requests on the system to begin to fail until a restart.
https://github.com/golang/go/issues/52839