From c1e2ecbaf93b360f3384a23c77a01c2280b9e58e Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Fri, 3 Jun 2022 21:18:14 -0700 Subject: [PATCH] doc/go1.19: document Resolver.PreferGo Updates #51400 Change-Id: I61733574362d4cf3cb65122bd13361e5c0f6728c Reviewed-on: https://go-review.googlesource.com/c/go/+/410375 Run-TryBot: Heschi Kreinick TryBot-Result: Gopher Robot Reviewed-by: Michael Pratt Run-TryBot: Michael Pratt Reviewed-by: Heschi Kreinick Auto-Submit: Michael Pratt --- doc/go1.19.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/go1.19.html b/doc/go1.19.html index 06bd7bcff14..4e6699c289e 100644 --- a/doc/go1.19.html +++ b/doc/go1.19.html @@ -343,7 +343,20 @@ Do not send CLs removing the interior tags from such phrases.

- TODO: https://go.dev/cl/400654: permit use of Resolver.PreferGo, netgo on Windows and Plan 9 + Resolver.PreferGo + is now implemented on Windows and Plan 9. It previously only worked on Unix + platforms. Combined with + Dialer.Resolver and + Resolver.Dial, it's now + possible to write portable programs and be in control of all DNS name lookups + when dialing. +

+

+ The net package now has initial support for the netgo + build tag on Windows. When used, the package uses the Go DNS client (as used + by Resolver.PreferGo) instead of asking Windows for + DNS results. The upstream DNS server it discovers from Windows + may not yet be correct with complex system network configurations, however.