3 ms·
How slow is running your own recursive DNS?
by RockRobotRock 3y ago
How slow is running your own recursive DNS?
- quesera 3y agoDepends 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.
- rubatuga 3y agoFor my DNS resolver I run, it tends to take around twice as long for the initial request compared to other caching resolvers.
- drexlspivey 3y agoIt's actually a lot faster since unbound can prefetch and cache your most common queries. Most lookups in my pihole resolve in sub 1ms
- RockRobotRock 3y agoYeah but that's the same as a regular home DNS server that isn't recursive. Your devices also have their own cache.
- drexlspivey 3y agoThe 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
- RockRobotRock 3y agoThank you, I'm sorry I wasn't aware of the prefetch feature. That's actually pretty cool.
- AndyMcConachie 3y agoI 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.