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

trim trailing dots from discovered nameservers in central place

This commit is contained in:
Craig Peterson
2019-05-15 12:57:17 -04:00
parent 5044695ffe
commit 6d6f685f70
2 changed files with 2 additions and 2 deletions

View File

@@ -54,8 +54,7 @@ func (n *NameCom) GetRegistrarCorrections(dc *models.DomainConfig) ([]*models.Co
foundNameservers := strings.Join(nss, ",")
expected := []string{}
for _, ns := range dc.Nameservers {
name := strings.TrimRight(ns.Name, ".")
expected = append(expected, name)
expected = append(expected, ns.Name)
}
sort.Strings(expected)
expectedNameservers := strings.Join(expected, ",")