]> Cypherpunks repositories - gostls13.git/commit
net: fix LookupCNAME on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Tue, 20 Dec 2016 21:33:06 +0000 (22:33 +0100)
committerDavid du Colombier <0intro@gmail.com>
Tue, 20 Dec 2016 23:25:43 +0000 (23:25 +0000)
commit985a574991207a74ab45ce76ecf54228734ddffe
tree8872f8ab4a2cf7f670ed178cdfec078bbaae245d
parent6e87f8896106c9a673c3c049c83ef389178cef82
net: fix LookupCNAME on Plan 9

In CL 34650, LookupCNAME was changed so it always returns
the canonical DNS host, even when there is no CNAME record.

Consequently, TestLookupCNAME was failing on Plan 9,
because www.google.com doesn't have a CNAME record.

We changed the implementation of lookupCNAME on Plan 9, so it
returns the canonical DNS host after a CNAME lookup failure.

Fixes #18391.

Change-Id: I59f361bfb2c9de3953e998e8ac58c054979210bd
Reviewed-on: https://go-review.googlesource.com/34633
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/lookup_plan9.go