HACKER Q&A
📣 500ktc

Why does news.Y Combinator.com use a DNS TTL of 1s?


This result in every page load making a DNS request.

This is a questionable technical choice, especially considering HN's status as the SaaS mecca. So it begs the question: Why?

If the goal is to be able to rapidly switch to cloudflare when under attack then surely a TTL of 600 or 60 would be sufficient whilst being more respectful of your visitors?


  👤 toomuchtodo Accepted Answer ✓
For fast failover to the backup server. The lack of DNS caching is immaterial, lookups are cheap, network and CPU is cheap (wrt serving DNS).

It’s not a questionable technical choice (imho) based on the use case. Simplicity is the ultimate sophistication.


👤 jsharkey
NextDNS has a "Cache Boost" option that, when enabled, clamps answers to a minimum TTL to mitigate things like this. I've noticed that some Samsung IoT domains also have aggressively low TTL.

👤 ironmagma
I'm legitimately curious what environment you're in where you notice/care about the extra DNS lookup?