]> Cypherpunks repositories - gostls13.git/commit
net: return errNoSuchHost when no entry found in /etc/hosts and order is hostLookupFiles
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Thu, 17 Nov 2022 08:49:32 +0000 (08:49 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 17 Nov 2022 21:42:39 +0000 (21:42 +0000)
commit3e5c2c155645ebaed62e4481430c455045b0fff5
tree9cfc0a59ad7411ed1e149e59afc9be09ba7278e3
parent1f4394a0c92697896735a5c0135dfde1be9f42bd
net: return errNoSuchHost when no entry found in /etc/hosts and order is hostLookupFiles

When /etc/nsswitch.conf lists: "hosts: files" then LookupHost returns two nils when no entry inside /etc/hosts is found.

Change-Id: I96d68a079dfe009655c84cf0e697ce19a5bb6698
GitHub-Last-Rev: 894f066bbcc7c975f1975bd0d1dcb5726f590bc5
GitHub-Pull-Request: golang/go#56747
Reviewed-on: https://go-review.googlesource.com/c/go/+/450875
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Joedian Reid <joedian@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/net/conf_test.go
src/net/dnsclient_unix.go
src/net/dnsclient_unix_test.go