We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bffb8b commit 869932dCopy full SHA for 869932d
src/net/net.go
@@ -68,6 +68,11 @@ GODEBUG environment variable (see package runtime) to go or cgo, as in:
68
69
The decision can also be forced while building the Go source tree
70
by setting the netgo or netcgo build tag.
71
+The netgo build tag disables entirely the use of the native (CGO) resolver,
72
+meaning the Go resolver is the only one that can be used.
73
+With the netcgo build tag the native and the pure Go resolver are compiled into the binary,
74
+but the native (CGO) resolver is preferred over the Go resolver.
75
+With netcgo, the Go resolver can still be forced at runtime with GODEBUG=netdns=go.
76
77
A numeric netdns setting, as in GODEBUG=netdns=1, causes the resolver
78
to print debugging information about its decisions.
0 commit comments