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

Vladislav Grishenko themiron at mail.ru
Sun Jul 19 15:59:54 BST 2015


Hi Justin,

There's nothing wrong with dnsmasq.
Instead, when your wan in down, all dns queries from lan gets faked by
answering fake 10.0.0.1 address which is used for showing the router's wan
state and reason.
You could turn it off with "Enable WAN down browser redirect notice" under
Administration / System web ui page.

Best Regards, Vladislav Grishenko

> -----Original Message-----
> From: Dnsmasq-discuss [mailto:dnsmasq-discuss-
> bounces at lists.thekelleys.org.uk] On Behalf Of Justin Smith
> Sent: Sunday, July 19, 2015 2:20 PM
> To: dnsmasq-discuss at lists.thekelleys.org.uk
> Subject: [Dnsmasq-discuss] dnsmasq not responding to DNS queries for local
> addresses when WAN down
> 
> 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.
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss




More information about the Dnsmasq-discuss mailing list