mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-10 17:38:13 +08:00
BUG: AutoDNSSEC validation is too aggressive (#2196)
This commit is contained in:
parent
9f6499048c
commit
c72495d37b
1 changed files with 4 additions and 1 deletions
|
@ -556,10 +556,13 @@ func processSplitHorizonDomains(config *models.DNSConfig) error {
|
|||
//}
|
||||
|
||||
func checkAutoDNSSEC(dc *models.DomainConfig) (errs []error) {
|
||||
if strings.ToLower(dc.RegistrarName) == "none" {
|
||||
return
|
||||
}
|
||||
if dc.AutoDNSSEC == "on" {
|
||||
for providerName := range dc.DNSProviderNames {
|
||||
if dc.RegistrarName != providerName {
|
||||
errs = append(errs, fmt.Errorf("AutoDNSSEC is enabled, but DNS provider %s does not match registrar %s", providerName, dc.RegistrarName))
|
||||
errs = append(errs, Warning{fmt.Errorf("AutoDNSSEC is enabled, but DNS provider %s does not match registrar %s", providerName, dc.RegistrarName)})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue