I've been annoyed by "best DNS server" listicles for a while. They're all measured from
someone else's datacenter, on someone else's ISP, and the ranking is always the same three
names in the same order.
So I measured 52 resolvers from my own laptop, on my own Wi-Fi, on an ordinary Indian ISP
connection. Wrote a zsh script for it, because doing this by hand 52 times is miserable.
What it measures per resolver: median cached latency, median cold latency (random names
under com/net/org so nothing is warm), jitter, packet loss, DNSSEC validation, whether it
hijacks NXDOMAIN, TCP/53, DoT:853, 443 reachability, and which anycast node answers.
The result genuinely surprised me.
The winner wasn't Cloudflare, Google or Quad9. It was Neustar UltraDNS, and it won *despite*
having worse cached latency than all three:
resolver cached cold
Neustar 59 58
Cloudflare 53 141
Quad9 (unfiltered) 49 141
Google 44 162
my router 9 95
The router surprised me more. It beat every public resolver on cached latency by 4-5x (9ms)
and then fell apart the moment anything was cold (95ms). On DNSSEC I can't give you a clean
answer: with a deliberately broken-signature domain, a validating resolver returns SERVFAIL
8.8.8.8 does — and mine just doesn't respond. That's suspicious, not conclusive.
The reason I'm posting is I want other people to run it and tell me what wins on their connection especially on fibre, or in the US/EU where the geography is nothing like mine.
Here is the repo: https://github.com/dharmsharmaa/dns-bench
edit: forgot to add the repo url