Skip to content

Commit ca80411

Browse files
committed
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 <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Bryan Mills <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent fe1b2f9 commit ca80411

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

doc/go1.22.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,10 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
580580
</p>
581581

582582
<p><!-- CL 467335 -->
583-
TODO: <a href="https://go.dev/cl/467335">https://go.dev/cl/467335</a>: net: respect hosts file when resolving names for Windows
583+
The Go DNS Resolver, used when building the binary with "-tags=netgo",
584+
now searches a matching name in the Windows hosts file,
585+
located at <code>%SystemRoot%\System32\drivers\etc\hosts</code>,
586+
before making a DNS query.
584587
</p>
585588
</dd>
586589
</dl><!-- net -->

0 commit comments

Comments
 (0)