]> Cypherpunks repositories - gostls13.git/commitdiff
doc: document that the Windows hosts file is now respected
authorqmuntal <quimmuntal@gmail.com>
Wed, 6 Dec 2023 23:59:54 +0000 (00:59 +0100)
committerQuim Muntal <quimmuntal@gmail.com>
Sat, 9 Dec 2023 21:47:36 +0000 (21:47 +0000)
For #57757.
For #61422.

Change-Id: Icbe9a86b43eb0816dc5899a1c14b50ee22db1c5d
Reviewed-on: https://go-review.googlesource.com/c/go/+/548095
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
doc/go1.22.html

index 7e2b4da20c38044879b2b839f99499b5fa34b54a..bf39db39e5528b5c8190d8a6e55cf7054048eb5c 100644 (file)
@@ -580,7 +580,10 @@ defer func() {
     </p>
 
     <p><!-- CL 467335 -->
-      TODO: <a href="https://go.dev/cl/467335">https://go.dev/cl/467335</a>: 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 <code>%SystemRoot%\System32\drivers\etc\hosts</code>,
+      before making a DNS query.
     </p>
   </dd>
 </dl><!-- net -->