1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

get-zones should comment out NAMESERVER() (#743)

* get-zones should comment out NAMESERVER()

* Edits
This commit is contained in:
Tom Limoncelli
2020-05-22 10:20:10 -04:00
committed by GitHub
parent d52c98782c
commit 6348b1d995
6 changed files with 65 additions and 26 deletions

View File

@@ -275,8 +275,10 @@ func formatDsl(zonename string, rec *models.RecordConfig, defaultTTL uint32) str
// TODO(tlim): If this is an SPF record, generate a SPF_BUILDER().
case "NS":
// NS records at the apex should be NAMESERVER() records.
// DnsControl uses the API to get this info. NAMESERVER() is just
// to override that when needed.
if rec.Name == "@" {
return fmt.Sprintf("NAMESERVER('%s')", target)
return fmt.Sprintf("//NAMESERVER('%s')", target)
}
target = "'" + target + "'"
case "R53_ALIAS":