a0dc4222b6
Previsouly it was done in Agent.Start, which is much later then it needs to be. The new 'dns' package was required, because otherwise there would be an import cycle. In the future we should move more of the dns server into the dns package.
11 lines
288 B
Go
11 lines
288 B
Go
package dns
|
|
|
|
import "regexp"
|
|
|
|
// MaxLabelLength is the maximum length for a name that can be used in DNS.
|
|
const MaxLabelLength = 63
|
|
|
|
// InvalidNameRe is a regex that matches characters which can not be included in
|
|
// a DNS name.
|
|
var InvalidNameRe = regexp.MustCompile(`[^A-Za-z0-9\\-]+`)
|