get-zones: NAMESERVER() never has TTL()
* NAMESERVER() never has TTL()
Fixes
@@ -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 + "'"
