Hacker News new | past | comments | ask | show | jobs | submit login

I believe "net" does so for native dns lookups. You can disable that by building go with 'CGO_ENABLED=0', if desired.



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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: