]> Cypherpunks repositories - gostls13.git/commit
net: use a consistent dnsConfig in hostLookupOrder
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Mon, 14 Nov 2022 20:50:02 +0000 (20:50 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 15 Nov 2022 00:37:41 +0000 (00:37 +0000)
commitd52883f443e1d564b0300acdd382af1769bf0477
tree24078bb49376d893dfd5050084508b449041ccc4
parentf977ffe82dad0d8d296e898141b37c8af22f2eef
net: use a consistent dnsConfig in hostLookupOrder

Use the same dnsConfig throughout a DNS lookup operation.
Before this CL it was possible to decide to re-read a
modified resolv.conf file during the DNS lookup,
which could lead to inconsistencies between the lookup order
and the name server list.

Change-Id: I0689749272b8263268d00b9a9cb4458cd68b23eb
GitHub-Last-Rev: 64810a22bc8a7dd5e804b5f5253d11b73942dfe3
GitHub-Pull-Request: golang/go#56690
Reviewed-on: https://go-review.googlesource.com/c/go/+/449337
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/net/conf.go
src/net/conf_test.go
src/net/dnsclient_unix.go
src/net/dnsclient_unix_test.go
src/net/lookup.go
src/net/lookup_plan9.go
src/net/lookup_unix.go
src/net/lookup_windows.go
src/net/net_fake.go