Skip to content

Commit

Permalink
feat: add NormalizeDNSZoneName
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalvas committed Aug 3, 2023
1 parent dd9906b commit d350455
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fqdn/dns.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package fqdn

import "strings"

func NormalizeDNSZoneName(name string) string {
if !strings.HasSuffix(name, ".") {
name += "."
}

return name
}

0 comments on commit d350455

Please sign in to comment.