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

CLOUDFLARE: sometime ago they bump down the min ttl to 60 second (#1988)

This commit is contained in:
momoterraw
2023-01-27 05:15:22 -08:00
committed by GitHub
parent 222f50d986
commit bb88b7c4b0
2 changed files with 5 additions and 5 deletions

View File

@@ -420,8 +420,8 @@ func (c *cloudflareProvider) preprocessConfig(dc *models.DomainConfig) error {
if rec.TTL == 0 || rec.TTL == 300 {
rec.TTL = 1
}
if rec.TTL != 1 && rec.TTL < 120 {
rec.TTL = 120
if rec.TTL != 1 && rec.TTL < 60 {
rec.TTL = 60
}
if rec.Type != "A" && rec.Type != "CNAME" && rec.Type != "AAAA" && rec.Type != "ALIAS" {