From 48af067e38fad3b377bdb612a7cca0ff8b151246 Mon Sep 17 00:00:00 2001 From: nename0 <26363498+nename0@users.noreply.github.com> Date: Sat, 2 Aug 2025 10:40:10 +0200 Subject: [PATCH] Reduce minimum TTL to 60s desec allows TTL of 60s for dyndns domains (dedyn.io) --- provider.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/provider.go b/provider.go index 973daa9..393801d 100644 --- a/provider.go +++ b/provider.go @@ -351,12 +351,12 @@ func libdnsTTL(rrs rrSet) time.Duration { // rrSetTTL returns a valid rrSetTTL value for the given record. // -// deSEC has a minimum TTL of 3600 seconds, if the record TTL -// is shorter than 3600 seconds, 3600 seconds is returned. +// deSEC has a minimum TTL of 60 seconds, if the record TTL +// is shorter than 60 seconds, 60 seconds is returned. func rrSetTTL(rr libdns.RR) int { ttl := int(rr.TTL / time.Second) - if ttl < 3600 { - return 3600 + if ttl < 60 { + return 60 } return ttl }