1package dns 2 3import "regexp" 4 5// MaxLabelLength is the maximum length for a name that can be used in DNS. 6const MaxLabelLength = 63 7 8// InvalidNameRe is a regex that matches characters which can not be included in 9// a DNS name. 10var InvalidNameRe = regexp.MustCompile(`[^A-Za-z0-9\\-]+`) 11