Preferred DNS server: Router or ISP

4

1

I'm making my computer have a static IP address so I need to set a DNS server, should I set the Preferred DNS server setting on my computer to the IP of my router, or should I set it to the IP of my ISPs DNS server?

Basically should I go through the router or directly to the DNS server?

Jonathan.

Posted 2010-02-26T19:49:02.440

Reputation: 2 454

1IF you're manually setting your dns settings, why not just set it to google's dns (8.8.8.8 & 8.8.4.4) or open dns – Roy Rico – 2010-02-26T20:22:15.073

I'm just testing that now, though I'm not testing OpenDNS, I've used it before and it requires accounts, and i don't like it much. Will OpenDNS be better than Google? – Jonathan. – 2010-02-26T20:34:14.077

1OpenDNS does not require an account. You can just use the IP addresses. – Iain – 2010-02-26T20:52:00.557

oh, will it be better than google though? – Jonathan. – 2010-02-26T20:55:14.340

If by better you mean faster, that is very dependent on your connection and proximity to servers. I've used both services and they're both very good, however to get the fastest you will need to do the testing yourself. – heavyd – 2010-02-26T22:32:33.920

Warning, OpenDNS is a lying DNS resolver: it modifies the responses from the legitimate name servers. – bortzmeyer – 2010-03-01T11:26:19.330

Yes, i agree with @bortzmeyer... I would suggest to use google as a first preference, as it will not give you a incorrect address if it doesn't find a domain. Open DNS will give you the IP of one of it's machines when it can't find a domain, this is in an effort to get your browser to go to it's site so it can serve you ads. – Roy Rico – 2010-03-02T17:28:24.490

Answers

4

As far as the DNS is concerned, it really doesn't matter. Your router will end up doing the lookup to your ISP anyway. As for performance, you will likely get better performance using your ISP directly since your router is pretty under-powered and will be relatively slow in responding to queries. However, in theory, if your router is able to cache queries, if you visit the same domains repeatedly its possible the router will be faster.

You can use a DNS Benchmark Utility to test both options and decide for yourself.

heavyd

Posted 2010-02-26T19:49:02.440

Reputation: 54 755

The router does not necessarily forward to the ISP nameserver. It can be fully recursive just by itself. – Patrick Mevzek – 2018-04-16T01:14:26.073

1

Or this benchmark utility: http://code.google.com/p/namebench/

– David d C e Freitas – 2011-05-04T08:11:39.307

3

Most low-grade CPE routers are very bad with DNS proxying. It is highly recommended to bypass them and to talk directly to the ISP.

See a survey by the swedish registry and one by ICANN SSAC. Both surveys were made in the context of DNSSEC but apply to far wider issues.

And RFC 5625 for advices to the routers programmers (of course, not one of them have read a RFC).

bortzmeyer

Posted 2010-02-26T19:49:02.440

Reputation: 1 083