Commit 62e30eae authored by Nick Jüttner's avatar Nick Jüttner
Browse files

More context

Signed-off-by: default avatarNick Jüttner <nick@juni.io>
parent 52819663
Showing with 4 additions and 0 deletions
+4 -0
......@@ -191,6 +191,10 @@ func shouldUpdateTTL(desired, current *endpoint.Endpoint) bool {
return desired.RecordTTL != current.RecordTTL
}
// validateDNSName checks if the DNS name is correct
// A dns name may contain only the ASCII letters 'a' through 'z' (in a case-insensitive manner),
// the digits '0' through '9', and the hyphen ('-').
// No other symbols or white space are allowed.
func validateDNSName(dnsName string) (string, error) {
dnsName = strings.ToLower(dnsName)
dnsName = strings.TrimSpace(dnsName)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment