Y
Hacker News
new
|
ask
|
show
|
jobs
by
stock_toaster
4884 days ago
I believe "net" does so for native dns lookups. You can disable that by building go with 'CGO_ENABLED=0', if desired.
1 comments
4ad
4883 days ago
That is correct. It uses libc for resolving names because systems might be configured to use NIS or LDAP before DNS. With cgo disabled it defaults to using its own DNS resolver and resolv.conf.
link