golang/go

net: “Name Resolution” documentation does not describe default behavior on Windows

Open

#57,663 opened on 2023年1月6日

GitHub で見る
 (11 comments) (0 reactions) (0 assignees)Go (19,008 forks)batch import
DocumentationNeedsFixOS-Windowshelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

What version of Go are you using (go version)?

Does this issue reproduce with the latest release?

Yes: https://github.com/golang/go/blob/f721fa3be9bb52524f97b409606f9423437535e8/src/net/net.go#L76

What operating system and processor architecture are you using (go env)?

(GONOPROXY and related redacted for privacy)

What did you do?

I was reading the net/ docs to try to understand some details around DoT/DoH, and came across this statement:

On Windows, in Go 1.18.x and earlier, the resolver always used C library functions, such as GetAddrInfo and DnsQuery.

This statement is somewhat confusing, as it is not clear how it pertains to my current Go version 1.19.3.

What did you expect to see?

I would prefer to see a statement that describes the behavior of my Go version.

What did you see instead?

I saw a statement that describes past versions only.

コントリビューターガイド