From: qmuntal
Date: Wed, 6 Dec 2023 23:59:54 +0000 (+0100)
Subject: doc: document that the Windows hosts file is now respected
X-Git-Tag: go1.22rc1~53
X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ca804118b1ff4ea6cd0b83808e140671d7e10f6f;p=gostls13.git
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
---
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.