Hacker News new | ask | show | jobs
by RockRobotRock 995 days ago
How slow is running your own recursive DNS?
4 comments

Depends on a few factors:

My nameserver, 8.8.8.8, and 1.1.1.1 are all about 25ms away from me. Mine is actually a few ms closer, but that will vary.

Bigger nameservers will have warmer caches, so first lookup might be a bit slower on my nameserver.

I presume the big nameservers are managed well under capacity, so load should not be significant.

All told, I cannot perceive any performance difference at all.

I run my own resolver on my home network and I never notice anything. When loading a webpage or doing pretty much anything else online the DNS delay is negligible. And if the answer is already cached in my house it's definitely faster than having to leave my home network to get a response.
For my DNS resolver I run, it tends to take around twice as long for the initial request compared to other caching resolvers.
It's actually a lot faster since unbound can prefetch and cache your most common queries. Most lookups in my pihole resolve in sub 1ms
Yeah but that's the same as a regular home DNS server that isn't recursive. Your devices also have their own cache.
The point is that if the TTL is 10mins and you lookup the domain after it expires the regular DNS will go and fetch it, unbound fetches it as soon as it expires and it is already cached
Thank you, I'm sorry I wasn't aware of the prefetch feature. That's actually pretty cool.