1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Better validate NAMESERVER format. (#350)

* remove misleading ip field we don't touch
This commit is contained in:
Craig Peterson
2018-03-22 11:52:52 -04:00
committed by Tom Limoncelli
parent 139f4fe1ed
commit 2a7b382767
5 changed files with 92 additions and 101 deletions

View File

@@ -57,7 +57,7 @@ func AddNSRecords(dc *models.DomainConfig) {
rc.SetLabel("@", dc.Name)
t := ns.Name
if !strings.HasSuffix(t, ".") {
rc.SetTarget(t + ".")
t += "."
}
rc.SetTarget(t)