dns icon indicating copy to clipboard operation
dns copied to clipboard

DNS TTLs are too low

Open Muirrum opened this issue 1 year ago • 4 comments

Setting a default TTL of 1 second does not allow for proper caching and can put strain on the DNS network. The "best practice" is between 12 and 24 hours, but if that's too long it might make sense to follow Cloudflare, which sets their "Auto" TTL to 300 seconds (or 5 minutes)1.

In general, it's good practice to have a slightly longer TTL to enable faster queries2 and better redundancy.

Muirrum avatar Nov 28 '23 14:11 Muirrum

Agreed.

grymmy avatar Nov 28 '23 19:11 grymmy

What actions are to be taken to implement this? Are there any existing entries that have low TTLs?

reesericci avatar Feb 07 '24 07:02 reesericci

there's a whole bunch that have a ttl of 1 (the README encourages it, in fact). I'm still waiting on discussion of what out ttl should be though

Muirrum avatar Feb 08 '24 12:02 Muirrum

#1149 retroactively updates TLS for all to 600, will make a PR to add default dns in octodns config, then close here!

jaspermayone avatar May 02 '24 01:05 jaspermayone