diff --git a/src/pkg/net/dnsclient.go b/src/pkg/net/dnsclient.go index 0343dd2f0ab..16103c4d05b 100644 --- a/src/pkg/net/dnsclient.go +++ b/src/pkg/net/dnsclient.go @@ -207,7 +207,7 @@ func isDomainName(s string) bool { switch { default: return false - case 'a' <= c && c <= 'z' || 'A' <= c && c <= 'Z': + case 'a' <= c && c <= 'z' || 'A' <= c && c <= 'Z' || c == '_': ok = true case '0' <= c && c <= '9': // fine