What's new

Dnsmasq returns 10.0.0.1

  • 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!

asz007

New Around Here
Hello everyone,

I have an RT-N66U router with the Asuswrt Merlin firmware. I am using the router in repeater mode, and at the same time I want the router to function as a DNS server as well. I have setup dnsmasq with the following dnsmasq.conf
#########beginning of file##########
pid-file=/var/run/dnsmasq.pid
user=nobody
bind-dynamic
interface=br0
no-dhcp-interface=br0
no-negcache
cache-size=1500
min-port=4096

domain-needed
bogus-priv
no-resolv
no-poll
server=/lan/192.168.1.2
server=8.8.8.8
server=8.8.4.4
local=/lan/
no-hosts
addn-hosts=/jffs/configs/static_hosts.txt
expand-hosts
domain=lan
#########end of file#####

The content of static_hosts.txt is just the following line
192.168.1.5 test

Now, everything works fine when I am logged in to the router via SSH and issue the following command:

nslookup test 192.168.1.2

I get a correct response i.e..

Server: 192.168.1.2
Address 1: 192.168.1.2 RT-N66U-9698.

Name: test
Address 1: 192.168.1.5 test.lan


But when I issue the same command from my Mac:

nslookup test 192.168.1.2

The name cannot be resolved, i.e. I get the following response:

Server: 192.168.1.2
Address: 192.168.1.2#53

Name: test.lan
Address: 10.0.0.1

I have disabled the "browser redirect notice" from the Asus Web Gui, but to no avail, so here I am! Any help in solving this is appreciated!
 
Your router is in repeater mode, it cannot function as a DNS Server and be a repeater at the same time.
 
@thelonelycoder Thanks for the reply. I suspected this also, but curious to know why it would work perfectly when I am ssh:ed into the router, but not from another device on lan?
 
@thelonelycoder Thanks for the reply. I suspected this also, but curious to know why it would work perfectly when I am ssh:ed into the router, but not from another device on lan?
Because all DNS and DHCP queries are handled by the router, not the repeater.
The repeater may answer to local ping requests though but I am not sure.
Dnsmasq is only active when the device is in Wireless Router Mode, all other modes have it disabled.
 
I have disabled the "browser redirect notice" from the Asus Web Gui, but to no avail, so here I am! Any help in solving this is appreciated!
What is your upstream router (that the repeater is linked to)? Does that also have "browser redirect notice" disabled?

EDIT: What happens if you do a lookup on a FQDN that isn't part of the .lan domain, i.e. google.com?
 
Last edited:

Similar threads

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!
Top