@ianlancetaylor , I see the documentation is updated (at https://golang.org/pkg/net/#Resolver) indicting that "PreferGo" is a switch between Go's built-in DNS resolver or CGO resolver (which uses "getaddrinfo" or "getnameinfo"). Does using CGO resolver disable us using DNS dialer? Suppose I want to use CGO resolver with custom DNS server.
@ozn0417 Yes, using the cgo resolver means that it will use the DNS servers listed in /etc/resolv.conf or equivalent, and will not use whatever nameservers you want to specify. This should ideally also be part of the documentation.