1
0
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:
xtex
2024-03-03 23:12:13 +08:00
committed by GitHub
parent 32b8863a93
commit 73c303bf76

View File

@@ -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)
}