3 ms·
This is why I run Tomato and DNSmasq with a local cache and I send DNS queries to multiple DNS servers at once and accept whichever one replies the fastest. It
by Hengjie 12y ago
This is why I run Tomato and DNSmasq with a local cache and I send DNS queries to multiple DNS servers at once and accept whichever one replies the fastest. It basically uses the "all-servers" dnsmasq option in config. I then have 4.2.2.2 (level3) and 8.8.8.8 and 8.8.4.4 as servers.
The local cache speeds things up but also ensures that even if DNS is down, I still have most of my most used domains cached. Usually, I average 10,000 domains per day, so I have a cache of 15,000 records. The "all-servers" tends to help with redundancy but also speeds things up because no single server can consistently respond fast without having some queries take 100ms or more.
PS Technically you shouldn't be using 4.2.2.2 since Level3 expressively discourages it's public use. But the idea here is that you shouldn't rely on one provider even if they provide you with separate IPs
PS2 why was this post deleted?