@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.
Guys, how are you?
I have a suggestion to improve doc about parameter
PreferGoon struct Resolver based on a comment in another issue. #19268 (comment)
Suggestion adds more a small text:
Line 120 in a38a917
The text was updated successfully, but these errors were encountered: