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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 + "'"