diff --git a/identifiers.go b/identifiers.go index af7a9ca..5109af3 100644 --- a/identifiers.go +++ b/identifiers.go @@ -73,10 +73,12 @@ func isValidDNSLabelChar (ch rune) bool { return (ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z') || (ch >= '0' && ch <= '9') || - ch == '-' || ch == '_' || - ch == '*' || ch == '?'; + ch == '-' || ch == '_'; } func isValidDNSLabel (label string) bool { + if label == "*" || label == "?" { + return true + } for _, ch := range label { if !isValidDNSLabelChar(ch) { return false