Skip to content

Commit 4b936c7

Browse files
authored
Merge pull request #105 from blinklabs-io/fix/double-dot-nameserver
fix: don't add extra trailing dot to nameserver
2 parents 39cf206 + 1c37ce7 commit 4b936c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/dns/dns.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ func findNameserversForDomain(
301301
if nameservers != nil {
302302
ret := map[string][]net.IP{}
303303
for k, v := range nameservers {
304-
k = k + `.`
304+
k = dns.Fqdn(k)
305305
ret[k] = append(ret[k], net.ParseIP(v))
306306
}
307307
return dns.Fqdn(lookupDomainName), ret, nil

0 commit comments

Comments
 (0)