What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

How to make the router the default nameserver?

kevinlekiller

Occasional Visitor
[Solved] How to make the router the default nameserver?

Edit 2015-01-01: Solved!

Hello, I set the WAN DNS settings as follows: https://i.imgur.com/e4yRa1N.png

On my PC it uses 216.52.94.33 as the default namserver as you can see here with nslookup / GRC dns benchmark: https://i.imgur.com/CsEqFpt.png

I would prefer to hit the router first (192.168.1.1) rather than 216.52.94.33 as the cached latency is much lower on the router.

I tried setting the first nameserver in the WAN DNS settings to 192.168.1.1 but dnsmasq gives the error: dnsmasq[10892]: ignoring nameserver 192.168.1.1 - local interface

Anyone have an idea? Thanks.

Edit: I did try the DNS Filtering in Parent control, but the latency was very high (800ms+) and timing out often.

Edit: Results of GRC DNS Benchmark: https://i.imgur.com/l8fgkUL.png
 
Last edited:
If you want your clients connecting to the router to use 192.16.1.1 then you have to change (change back to default setting) the configuration at LAN > DHCP Server > DNS and WINS Server Setting, property DNS Server.

You have changed at WAN level, this is the name server that the router is to use.
 
If you want your clients connecting to the router to use 192.16.1.1 then you have to change (change back to default setting) the configuration at LAN > DHCP Server > DNS and WINS Server Setting, property DNS Server.

You have changed at WAN level, this is the name server that the router is to use.

Thanks for the reply, just to be clear, I need to set LAN > DHCP Server > DNS Server to 216.52.94.33, LAN > DHCP Server > Forward local domain queries to upstream DNS to Yes, WAN > WAN DNS Setting > Connect to DNS Server automatically > Yes ?
 
Thanks for the reply, just to be clear, I need to set LAN > DHCP Server > DNS Server to 216.52.94.33, LAN > DHCP Server > Forward local domain queries to upstream DNS to Yes, WAN > WAN DNS Setting > Connect to DNS Server automatically > Yes ?

This is how mine is set up, I get IP and DNS from my ISP:

WAN > WAN DNS Setting > Connect to DNS Server automatically > Yes
LAN > DHCP Server > DNS Server Leave blank
LAN > DHCP Server > Forward local domain queries to upstream DNS No
 
This is how mine is set up, I get IP and DNS from my ISP:

WAN > WAN DNS Setting > Connect to DNS Server automatically > Yes
LAN > DHCP Server > DNS Server Leave blank
LAN > DHCP Server > Forward local domain queries to upstream DNS No

Ah ok, my ISP DNS is very poor (pages time out often), which is why I wanted to use an alternate.
 
You can of course use another DNS at WAN level, like 8.8.8.8 (google DNS), just make sure the LAN settings are as I described so that the clients use the router as nameserver.
 
You can of course use another DNS at WAN level, like 8.8.8.8 (google DNS), just make sure the LAN settings are as I described so that the clients use the router as nameserver.

My LAN DNS settings are the default (https://i.imgur.com/eoLmybh.png)

However it still uses my ISP's nameserver as default if I set WAN DNS settings to automatic or uses the provided nameserver if I put one in WAN DNS settings. Even setting the DNS to 192.168.1.1 on the operating system still bypasses the router's nameserver.
 
Did you perhaps change something else on the WAN part?
This is the default settings:
 

Attachments

  • Screen Shot 2014-12-31 at 17.11.26.png
    Screen Shot 2014-12-31 at 17.11.26.png
    72.4 KB · Views: 709
I can manually connect to it, so we know it does exist/work, it just doesn't use it by default for whatever reason: https://i.imgur.com/qkI1fZP.png

Edit: Here's the contents of /tmp/etc/dnsmasq.conf if it helps:

pid-file=/var/run/dnsmasq.pid
user=nobody
resolv-file=/tmp/resolv.conf
servers-file=/tmp/resolv.dnsmasq
no-poll
min-port=4096
bind-dynamic
interface=br0
interface=ppp1*
no-dhcp-interface=ppp1*
no-negcache
cache-size=1500
dhcp-range=lan,192.168.1.2,192.168.1.254,255.255.255.0,86400s
dhcp-option=lan,3,192.168.1.1
dhcp-option=lan,252,"\n"
dhcp-lease-max=253
dhcp-authoritative
 
Last edited:
I would suggest you start over with the configuration, a complete reset of the router, just to get the default settings.
Afterwards you just set the WAN DNS an see how it works.

I hope you haven't done a lot of other configuration too, it will be lost by a reset.
 
Leave the DNS field empty on the DHCP page, so every client will be told to use the router for name resolution.

Then on the WAN page, disable the option to automatically connect to the ISP's DNS. You will then get two fields to enter other DNS servers.

That way, all your clients will go through the router (so LAN name resolution will work), and external queries will be forwarded by the router to the DNS servers specified on the WAN page.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top