golang/go

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

Open

#57,663 创建于 2023年1月6日

在 GitHub 查看
 (11 评论) (0 反应) (0 负责人)Go (19,008 fork)batch import
DocumentationNeedsFixOS-Windowshelp wanted

仓库指标

Star
 (133,883 star)
PR 合并指标
 (30 天内没有已合并 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.

贡献者指南