[Dnsmasq-discuss] dnsmasq not responding to DNS queries for local addresses when WAN down

Justin Smith justin at smithpolglase.com
Sun Jul 19 10:20:25 BST 2015


Hi,

My home network uses an Asus RT-N66U running Merlin's firmware (ver
378.55). I have dnsmasq running on the router. My problem is that when
the WAN interface goes down (as it does occasionally) dnsmasq no
longer returns the correct IP address to DNS queries to local hosts.

For example (fake domain name):

WAN UP
=======
justin at juka:~$ nslookup myhost1
Server: 127.0.1.1
Address: 127.0.1.1#53

Name: myhost1
Address: 192.168.30.3

WAN DOWN
==========
justin at juka:~$ nslookup myhost1
Server: 127.0.1.1
Address: 127.0.1.1#53

Name: myhost1.mydomain.com
Address: 10.0.0.1


My dnsmasq.conf looks something like this (personal data suppressed/changed):

bind-dynamic
interface=br0
no-negcache
cache-size=1500
domain-needed
bogus-priv
no-resolv
no-poll
server=aaa.bbb.ccc.ddd   # ISP DNS server IP address
local=/mydomain.com/
domain=mydomain.com
dhcp-range=192.168.30.200,192.168.30.250,24h
dhcp-host=f4:6d:04:da:3e:c4,myhost1,192.168.30.3
dhcp-host=38:2c:4a:af:e4:53,myhost2,192.168.30.4
...
dhcp-authoritative


My resolv.conf on the router looks like:
# cat /tmp/etc/resolv.conf
nameserver 127.0.0.1


Does anyone offer advice on how to correctly set up dnsmasq?


Thanks,
Justin.



More information about the Dnsmasq-discuss mailing list