mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-12-09 05:36:27 +08:00
ALIDNS: Exclude NS records from TTL warning messages
This commit is contained in:
parent
528a8105eb
commit
f3bef39caa
1 changed files with 4 additions and 2 deletions
|
|
@ -179,8 +179,10 @@ func (a *aliDNSDsp) PrepDesiredRecords(dc *models.DomainConfig) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if rec.TTL < versionInfo.minTTL {
|
if rec.TTL < versionInfo.minTTL {
|
||||||
printer.Warnf("record %s has TTL %d which is below the minimum %d for this domain version (%s)\n",
|
if rec.Type != "NS" {
|
||||||
rec.GetLabelFQDN(), rec.TTL, versionInfo.minTTL, versionInfo.versionCode)
|
printer.Warnf("record %s has TTL %d which is below the minimum %d for this domain version (%s)\n",
|
||||||
|
rec.GetLabelFQDN(), rec.TTL, versionInfo.minTTL, versionInfo.versionCode)
|
||||||
|
}
|
||||||
rec.TTL = versionInfo.minTTL
|
rec.TTL = versionInfo.minTTL
|
||||||
}
|
}
|
||||||
if rec.TTL > versionInfo.maxTTL {
|
if rec.TTL > versionInfo.maxTTL {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue