]> Cypherpunks repositories - gostls13.git/commitdiff
net: comment pedantry
authorRuss Cox <rsc@golang.org>
Wed, 6 Oct 2010 15:54:53 +0000 (11:54 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 6 Oct 2010 15:54:53 +0000 (11:54 -0400)
Fixes #1167.

R=r, r2
CC=golang-dev
https://golang.org/cl/2290044

src/pkg/net/dnsclient.go

index 18bd72c3f16c5e98885689ed07863bb705aa9b4b..0343dd2f0abe234cf5fd53443784e36d6d3f85f5 100644 (file)
@@ -192,14 +192,7 @@ var dnserr os.Error
 func loadConfig() { cfg, dnserr = dnsReadConfig() }
 
 func isDomainName(s string) bool {
-       // Requirements on DNS name:
-       //      * must not be empty.
-       //      * must be alphanumeric plus - and .
-       //      * each of the dot-separated elements must begin
-       //        and end with a letter or digit.
-       //        RFC 1035 required the element to begin with a letter,
-       //        but RFC 3696 says this has been relaxed to allow digits too.
-       //        still, there must be a letter somewhere in the entire name.
+       // See RFC 1035, RFC 3696.
        if len(s) == 0 {
                return false
        }