diff --git a/commands/getZones.go b/commands/getZones.go index a9b726f85..0bec3cbb6 100644 --- a/commands/getZones.go +++ b/commands/getZones.go @@ -254,7 +254,7 @@ func GetZone(args GetZoneArgs) error { if (rec.Type == "CNAME") && (rec.Name == "@") { o = append(o, "// NOTE: CNAME at apex may require manual editing.") } - o = append(o, formatDsl(zoneName, rec, defaultTTL)) + o = append(o, formatDsl(rec, defaultTTL)) } out := strings.Join(o, sep) @@ -314,7 +314,7 @@ func jsonQuoted(i string) string { return string(b) } -func formatDsl(zonename string, rec *models.RecordConfig, defaultTTL uint32) string { +func formatDsl(rec *models.RecordConfig, defaultTTL uint32) string { target := rec.GetTargetCombined() @@ -410,5 +410,5 @@ func makeR53alias(rec *models.RecordConfig, ttl uint32) string { } func makeUknown(rc *models.RecordConfig, ttl uint32) string { - return fmt.Sprintf(`// %s("%s")`, rc.UnknownTypeName, rc.GetTargetField()) + return fmt.Sprintf(`// %s("%s", TTL(%d))`, rc.UnknownTypeName, rc.GetTargetField(), ttl) }