]> Cypherpunks repositories - gostls13.git/commit
net: fail fast for DNS rcode success with no answers of requested type
authorIan Gudger <igudger@google.com>
Thu, 6 Sep 2018 06:53:36 +0000 (23:53 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 26 Sep 2018 23:09:55 +0000 (23:09 +0000)
commit94f48ddb96c4dfc919ae024f64df19d764f5fb5b
tree613921c657d39c13d67fd2f889d6399dec5165e3
parentda0d1a44bac379f5acedb1933f85400de08f4ac6
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.

Fixes #27525

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>
src/net/dnsclient_unix.go
src/net/dnsclient_unix_test.go