3 ms·
> their public DNS resolvers were getting 30x their usual traffic But why does my browser need to do a DNS lookup every time I request a page from HN? It's not
by amelius 5y ago
> their public DNS resolvers were getting 30x their usual traffic
But why does my browser need to do a DNS lookup every time I request a page from HN? It's not like the IP address changes every 5 minutes.
- cortesoft 5y agoBecause hackernews sets their TTL to 5 minutes: dig +noauthority +noquestion +nostats news.ycombinator.com @ns-225.awsdns-28.com. news.ycombinator.com. 300 IN A 209.216.230.240
- lupire 5y agoIt doesn't. But when Facebook DNS is missing, users ask for it many times because they have nothing to cache. This adds load than get block other queries.
- tempestn 5y agoShort answer is because they've set their DNS TTL to 5 minutes: https://mxtoolbox.com/SuperTool.aspx?action=a%3anews.ycombinator.com&run=toolpage https://mxtoolbox.com/SuperTool.aspx?action=a%3anews.ycombin... As for why, you'd have to ask them. It could be to allow for relatively quick DNS failover in the case of an outage. Or if using a proxy like Cloudflare, that provider could prefer short DNS TTLs to have flexibility in their routing.
- deleted 5y ago[deleted]
- ksaj 5y agoCloudflare and similar companies only work if the TTL is very short. If they set it to some infinite number, they wouldn't be do even the most basic load balancing at the global scale in which they operate.