netlify-dynamic-dns icon indicating copy to clipboard operation
netlify-dynamic-dns copied to clipboard

TTL should probably use the interval minutes or lower

Open andela-oakinniranye opened this issue 5 years ago • 1 comments

@oscartbeaumont the package doesn't set a TTL explicitly, hence netlify defaults to 1hr. However, given a 5-min default update interval, I was thinking it'd probably be better for the TTL to reflect that interval or something lower to reduce the dns cache time. For example, i think some dns updating services defaults to like 60 seconds

andela-oakinniranye avatar Sep 18 '19 19:09 andela-oakinniranye

I think this makes sense, I think the best way to add this would be to have the TLL default to the update interval but add another command line flag which would act as an override in case someone wanted a custom value. I think the current implementation allows for you to create a DNS record with a TLL in the Netlify dashboard and then when it is updated the TLL should be retained.

oscartbeaumont avatar Sep 19 '19 03:09 oscartbeaumont