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:
@ -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 + "'"
|
||||
|
Reference in New Issue
Block a user