Open Menu
AllLocalCommunitiesAbout
lotide
AllLocalCommunitiesAbout
Login

Stop using ridiculously low DNS TTLs | APNIC Blog

⁨63⁩ ⁨likes⁩

Submitted ⁨⁨3⁩ ⁨days⁩ ago⁩ by ⁨exu@feditown.com⁩ to ⁨technology@lemmy.world⁩

https://blog.apnic.net/2019/11/12/stop-using-ridiculously-low-dns-ttls/

source

Comments

Sort:hotnewtop
  • CarbonatedPastaSauce@lemmy.world ⁨3⁩ ⁨days⁩ ago

    There are lots of reasons to use really low TTLs, but most are a temporary need. Most of the times I had to set low TTLs for records were for hardware migration projects where services were getting new IP addresses. But in a well managed shop this should always be temporary. The TTL would be set low the day before the change, then set back to a normal value the day after the change. I feel the author is correct in that permanently setting low TTLs just covers up a lack of proper planning and change management.

    The only thing off the top of my head that I can think absolutely requires a permanently low TTL is DNS based global load balancing for high uptime applications. But I’m sure there are other uses. I agree that the vast majority of things do not need a low TTL on their DNS record.

    source
    • SpaceNoodle@lemmy.world ⁨3⁩ ⁨days⁩ ago

      So the options are to herd a million cats, or to set low TTLs? Hmmm …

      source
    • CompactFlax@discuss.tchncs.de ⁨3⁩ ⁨days⁩ ago

      I have a reasonably latent connection and using pihole and an anycast upstream resolver is noticeably slow. It falls out of pihole cache so freaking fast with these low TTL. I have set up unbound with aggressive caching prefetch and if I recall correctly pihole has a toggle to serve expired. Serving expired in unbound, before pihole, breaks stuff that rotates IP fast.

      source
  • exu@feditown.com ⁨3⁩ ⁨days⁩ ago

    Lol, reported for the URL “blog”

    source
    • L3s@lemmy.world ⁨3⁩ ⁨days⁩ ago

      Thats our automod, we keep an eye out for blogs. Every now and then we get spammed with personal blogs about off-topic things.

      source
  • zeezee@slrpnk.net ⁨2⁩ ⁨days⁩ ago

    tldr;

    Set that minimum TTL to something between 40 minutes (2400 seconds) and 1 hour; this is a perfectly reasonable range.

    source
  • MonkderVierte@lemmy.zip ⁨2⁩ ⁨days⁩ ago

    Btw, is there a way to tweak firefox so it always uses cache and only updates on manual site reload?

    source
    • chaospatterns@lemmy.world ⁨2⁩ ⁨days⁩ ago

      Are you trying to make an offline website? If so, you could look into using a Service Worker which would give you full control over when the content gets refreshed.

      source
      • MonkderVierte@lemmy.zip ⁨2⁩ ⁨days⁩ ago

        Laptop, mobile, bad line; it’s annoying if the page (which should already be in cache since i opened it hours ago) says “No internet :(” just because it got unloaded.

        source