Kitz Forum

Computers & Hardware => Networking => Topic started by: Chunkers on January 01, 2017, 06:45:36 AM

Title: Router DNS server caching, namebench benchmarking / testing on your connection
Post by: Chunkers on January 01, 2017, 06:45:36 AM
I have been happily grinding my way through the excellent serious of Mark Furneaux videos (https://www.youtube.com/watch?v=agieD5uiwYY) which @underzone recommended and just completed Part 7 : DNS resolver and benchmarking.  Unfortunately this is the last in the series and he has said he will not continue making them.  I have some suspected DNS issues with my connections / routers so found this very informative.

My pfSense box is not quite ready yet but it is interesting to see that pfSense has a DNS caching server (unbound (https://doc.pfsense.org/index.php/Unbound_DNS_Resolver)) built in and enabled by default.  I can't find out if my current TP-Link TL-ER5120 has a DNS cache or not  - I can't see any reference to it in the manual.

I can't test my own connection as I am currently at work in Africa but out of curiosity I downloaded namebench (http://www.howtogeek.com/howto/16372/find-a-faster-dns-server-with-namebench/) (its super easy under ubuntu as it is in the main repository and runs from the command line i.e. sudo apt-get install namebench - its also cross platform and has windows exe).  Namebench is really cool, can't wait toi try it on my home network and set up the 'optimal' DNS servers on my pfSense box.  I will certainly be running before and after tests with namebench on my network to evaluate the effect changing to my pfSense box has.

Just curious :

It seems to me that unless DNS caching is a standard undocumented feature of routers generally it puts pfSense at a distinct advantage (albeit probably not massively impactful for most people)

EDIT : I just found this article (https://fatmin.com/2014/12/04/configure-the-asus-rt-ac66u-router-as-a-caching-dns-server-with-bind/) about installing a Bind (https://en.wikipedia.org/wiki/BIND) DNS caching server using BusyBox.  As the VMG8924 has access to BusyBox through the CLI I am guessing the same might be feasible (if you are geeky enough).

Cool beans,

Chunks
Title: Re: Router DNS server caching, namebench benchmarking / testing on your connection
Post by: roseway on January 01, 2017, 07:12:07 AM
I've been using namebench on and off for years (it runs in Linux using Wine) and I've found it very helpful. You have to apply some common sense to its results of course, because at various times some fairly obscure (to me) DNS servers will rise to the top, but the next day they'll be several places down.

[Edit]
Apologies folks, I've suffered an episode of brain fade. :-[
The program I've been using on and off for years is DNSbench (https://www.grc.com/dns/benchmark.htm) not namebench.
Title: Re: Router DNS server caching, namebench benchmarking / testing on your connection
Post by: Ronski on January 01, 2017, 10:14:51 AM
I'm still working my way through those videos and I think that is my next one, I've generally used Googles DNS servers, but can't remember why.
Title: Re: Router DNS server caching, namebench benchmarking / testing on your connection
Post by: ejs on January 01, 2017, 11:00:09 AM
Considering your operating system and maybe even your web browser has its own DNS cache, I think adding another DNS cache in the router won't achieve very much. I'm not convinced there's much to be gained by using most ordinary routers as a DNS server, I think it just adds one more thing to go wrong really.

I don't particularly want to send all my DNS traffic to a third party even if it might be slightly faster, I'd rather stick to using my ISP's DNS servers.