mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
CLOUDFLAREAPI: Permit adding NS records to apex domain (#2864)
This commit is contained in:
@@ -397,10 +397,9 @@ func checkNSModifications(dc *models.DomainConfig) {
|
||||
|
||||
for _, rec := range dc.Records {
|
||||
if rec.Type == "NS" && rec.GetLabelFQDN() == punyRoot {
|
||||
if !strings.HasSuffix(rec.GetTargetField(), ".ns.cloudflare.com.") {
|
||||
printer.Warnf("cloudflare does not support modifying NS records on base domain. %s will not be added.\n", rec.GetTargetField())
|
||||
if strings.HasSuffix(rec.GetTargetField(), ".ns.cloudflare.com.") {
|
||||
continue
|
||||
}
|
||||
continue
|
||||
}
|
||||
newList = append(newList, rec)
|
||||
}
|
||||
|
Reference in New Issue
Block a user