]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.11] net: fail fast for DNS rcode success with no answers of reque...
authorIan Gudger <igudger@google.com>
Thu, 6 Sep 2018 06:53:36 +0000 (23:53 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 27 Sep 2018 21:41:40 +0000 (21:41 +0000)
commit05a0c7b4c60e240e521b0840c786cacd69221e68
tree63533e70de3d6f70bd106caec6878eb9d929823f
parente535c71009224422ae1853b88f071bb250eac1af
[release-branch.go1.11] net: fail fast for DNS rcode success with no answers of requested type

DNS responses which do not contain answers of the requested type return
errNoSuchHost, the same error as rcode name error. Prior to
golang.org/cl/37879, both cases resulted in no additional name servers
being consulted for the question. That CL changed the behavior for both
cases. Issue #25336 was filed about the rcode name error case and
golang.org/cl/113815 fixed it. This CL fixes the no answers of requested
type case as well.

Updates #27525
Fixes #27537

Change-Id: I52fadedcd195f16adf62646b76bea2ab3b15d117
Reviewed-on: https://go-review.googlesource.com/133675
Run-TryBot: Ian Gudger <igudger@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
(cherry picked from commit 94f48ddb96c4dfc919ae024f64df19d764f5fb5b)
Reviewed-on: https://go-review.googlesource.com/138175
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/dnsclient_unix.go
src/net/dnsclient_unix_test.go