]> Cypherpunks repositories - gostls13.git/commit
net: don't force cgo resolver for .local subdomain queries
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Tue, 20 Feb 2024 17:15:43 +0000 (17:15 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 26 Feb 2024 20:46:36 +0000 (20:46 +0000)
commitf63faf3689e215ef1f23d26316b2dae910df9f20
treee02ab8b6e3f180dd0d5875b00a56ada780427f13
parent4760b33326392c459bb5825938d57ce55d40224a
net: don't force cgo resolver for .local subdomain queries

The cgo resolver sends DNS queries for .local subdomain
lookups, just as we do in the go resolver.
We don't need to fallback to the cgo resolver for this
domains when nsswitch.conf uses only file and dns modules.

This has a benefit that we select a consistent resolver,
that is only based on the system configuration, regardless
of the queried domain.

Updates #63978

Change-Id: I9166103adb94d7ab52992925f413f361130e7c52
GitHub-Last-Rev: e2bc5874cb5c9165e3cc058e9effe36d0ce68cd6
GitHub-Pull-Request: golang/go#63986
Reviewed-on: https://go-review.googlesource.com/c/go/+/540555
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/net/conf.go
src/net/conf_test.go
src/net/net.go