]> Cypherpunks repositories - gostls13.git/commit
net: there are no invalid domain names anymore
authorRuss Cox <rsc@golang.org>
Wed, 19 Oct 2016 20:48:21 +0000 (16:48 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 24 Oct 2016 15:37:26 +0000 (15:37 +0000)
commitfa90f9b909286dc815fde1f83f77b80bd686127d
tree09cda7e12e6ff7a189f1ae5c104031c449563c12
parent157ce90abe24e7ff8ac51b05660eb7190101138c
net: there are no invalid domain names anymore

The Go resolver reports invalid domain name for '!!!.local',
but that is allowed by multicast DNS. In general we can't predict
what future relaxations might come along, and libc resolvers
do not distinguish 'no such host' from 'invalid name', so stop
making that distinction here too. Always use 'no such host'.

Fixes #12421.

Change-Id: I8f22604767ec9e270434e483da52b337833bad71
Reviewed-on: https://go-review.googlesource.com/31468
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/net/dnsclient_unix.go
src/net/lookup_test.go
src/net/lookup_windows.go