From ca804118b1ff4ea6cd0b83808e140671d7e10f6f Mon Sep 17 00:00:00 2001 From: qmuntal Date: Thu, 7 Dec 2023 00:59:54 +0100 Subject: [PATCH] doc: document that the Windows hosts file is now respected For #57757. For #61422. Change-Id: Icbe9a86b43eb0816dc5899a1c14b50ee22db1c5d Reviewed-on: https://go-review.googlesource.com/c/go/+/548095 Reviewed-by: Alex Brainman LUCI-TryBot-Result: Go LUCI Reviewed-by: Bryan Mills Reviewed-by: Dmitri Shuralyov --- doc/go1.22.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/go1.22.html b/doc/go1.22.html index 7e2b4da20c..bf39db39e5 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -580,7 +580,10 @@ defer func() {

- TODO: https://go.dev/cl/467335: net: respect hosts file when resolving names for Windows + The Go DNS Resolver, used when building the binary with "-tags=netgo", + now searches a matching name in the Windows hosts file, + located at %SystemRoot%\System32\drivers\etc\hosts, + before making a DNS query.

-- 2.48.1