/ Sign-up
Your question

DNS server settings on router?

  • Routers
  • WiFi
  • DNS Server
  • Ubuntu
  • Networking
Last response: in Networking
April 17, 2012 7:56:16 AM

hardware: 802.11g wifi router.
software: ubuntu 10.04lts.

ubuntu computer is connected to router using 802.11g wifi card.

on the router the first DNS server and
second DNS server are set to user defined figures.

Question: Must the first DNS server and second DNS server on the computer
be set to the same user defined figures as on the router, to ensure that the user
defined first DNS server and second DNS server figures are actually used?

Thank you.

More about : dns server settings router

April 17, 2012 10:14:43 AM

DNS servers are more of a personal preference. ISP's will often distribute routers with thier own DNS servers. This means you go through them to find anyother website/ip address. You will have no problems if you have a working internet connection (Default Gateway is important for this) and have different (but valid) DNS servers on every device.

When stuck for DNS servers you can use Primary Secondary These belong to google so should pretty much resolve anything and can default searches to google. I generally stick any non-corporate DNS servers as above.

Most routers will push out themselves as the default gateway and the dns server. This is fine, and normal. This just means it's added itself to the dns path. This means you will be able to resolve internal IPs (other devices on your own network).
April 17, 2012 1:34:53 PM

If you use netflix or other video service, you may want to use your ISP's DNS servers as some CDN's (content delivery networks) use your DNS to determine your geographical location and will select the closest server to you to stream the content/video. Using google's DNS or OpenDNS servers make it appear that you are in a different geographical location.
Related resources
April 18, 2012 2:34:44 PM

Thank you for answers.
On the router I have set the DNS servers to what I want. But I don't know
how to set the DNS servers on the ubuntu computer. So the question
is mainly, if the DNS settings on the router are used, also if the DNS settings
on the computer are different?
April 18, 2012 4:26:11 PM

I beleive you can just edit your /etc/resolv.conf file and add this line to the top of the file:


Where is the LAN IP address of your router, then it will use your router's DNS servers. If that doesn't work, then just add a line for each dns server and use the same addresses that you have configured in your router.
April 19, 2012 10:12:15 AM

Hawkeye22 said:
IUsing google's DNS or OpenDNS servers make it appear that you are in a different geographical location.

You know.. I've never considered that.