From f61efd45f28e31b34636f77c3505ad1ea4d9d880 Mon Sep 17 00:00:00 2001 From: Craig Peterson Date: Mon, 17 Jun 2019 15:09:27 -0400 Subject: [PATCH] restore prior cloudflare auto-ttl behavior when ttl is 300 --- providers/cloudflare/cloudflareProvider.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/cloudflare/cloudflareProvider.go b/providers/cloudflare/cloudflareProvider.go index b0613f3b6..e2e90bd9f 100644 --- a/providers/cloudflare/cloudflareProvider.go +++ b/providers/cloudflare/cloudflareProvider.go @@ -297,7 +297,7 @@ func (c *CloudflareApi) preprocessConfig(dc *models.DomainConfig) error { if rec.Metadata == nil { rec.Metadata = map[string]string{} } - if rec.TTL == 0 { // Please read: https://github.com/StackExchange/dnscontrol/issues/490 + if rec.TTL == 0 || rec.TTL == 300{ rec.TTL = 1 } if rec.TTL != 1 && rec.TTL < 120 {