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

get-zones: NAMESERVER() never has TTL() (#658)

* NAMESERVER() never has TTL()

Fixes https://github.com/StackExchange/dnscontrol/issues/630
This commit is contained in:
Tom Limoncelli
2020-02-27 23:56:49 -05:00
committed by GitHub
parent 4adef209c7
commit c98b922170

View File

@ -209,7 +209,7 @@ func formatDsl(zonename string, rec *models.RecordConfig, defaultTTL uint32) str
case "NS":
// NS records at the apex should be NAMESERVER() records.
if rec.Name == "@" {
return fmt.Sprintf(",\n\tNAMESERVER('%s'%s)", target, ttlop)
return fmt.Sprintf(",\n\tNAMESERVER('%s')", target)
}
default:
target = "'" + target + "'"