mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-02-25 16:13:04 +08: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:
parent
4adef209c7
commit
c98b922170
1 changed files with 1 additions and 1 deletions
|
@ -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 + "'"
|
||||
|
|
Loading…
Reference in a new issue