News for hackers. Stuff that matters.
Re:Go 1.16 will make system calls through Libc on OpenBSD by X-Istence on Tuesday February 02, 2021 @02:31PM (#26005436)
The downside to Go shipping it's own implementation of DNS resolution is that on systems that support far more rich set of DNS options (such as split DNS based upon hostnames in macOS) is that it doesn't work if the binary is built with a pure Go implementation.

That leaves users annoyed, because sending all DNS into a VPN tunnel is not always an option.

Re:Go 1.16 will make system calls through Libc on OpenBSD by yencabulator on Tuesday February 02, 2021 @07:51PM (#26009254)
If cgo is enabled (the usual case), Go uses libc for DNS if the configuration looks exotic enough that the pure-Go code wouldn't give the same results.

https://golang.org/pkg/net/#hdr-Name_Resolution

Re:Go 1.16 will make system calls through Libc on OpenBSD by ArchOversight on Wednesday February 03, 2021 @02:05PM (#26017689)
This is a long standing issue in various open source projects that use Go, where they want to ship static binaries.

Most recently, this happened with Concourse and it's Fly binary: https://github.com/concourse/concourse/issues/3691

The developers don't want to use CGO, or when they do use CGO they disable the net part... and now stuff doesn't work.

Projects have to specifically build with cgo enabled on macOS, or else it fails.