hackclub / dns

🕹 Manage Hack Club's DNS through a GitHub repository
144 stars 359 forks source link

DNS TTLs are too low #1023

Open Muirrum opened 11 months ago

Muirrum commented 11 months ago

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.

grymmy commented 11 months ago

Agreed.

reesericci commented 9 months ago

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

Muirrum commented 9 months ago

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

jaspermayone commented 6 months ago

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