From c98b9221709ade929b83cee9328e41c283ae8c02 Mon Sep 17 00:00:00 2001 From: Tom Limoncelli Date: Thu, 27 Feb 2020 23:56:49 -0500 Subject: [PATCH] get-zones: NAMESERVER() never has TTL() (#658) * NAMESERVER() never has TTL() Fixes https://github.com/StackExchange/dnscontrol/issues/630 --- commands/getZones.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/getZones.go b/commands/getZones.go index 73e16882a..0772eb2d8 100644 --- a/commands/getZones.go +++ b/commands/getZones.go @@ -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 + "'"