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