Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down