DNSmasq gets crazy when WAN is connected

7 posts / 0 new
Last post
elliot
elliot's picture
DNSmasq gets crazy when WAN is connected

Hello all,

 

I'm facing a weird issue here. Once I connect my WAN port to the line coming from the ISP my DNSmasq can't reply correctly to DHCP requests. Only clients who can get an address are our Win XP laptops but my Ubuntu, our both Androids and Logitech Squeezebox just can't get an address from the router. When I disconnect the WAN line and reboot the router then all clients are happy with DHCP.

I'm running DD-WRT v24-sp2 (07/20/11) stdkong (SVN revision 17356M) on a WNR3500v2/U/L.

My dnsmasq.conf looks like this:

***

interface=br0

resolv-file=/tmp/resolv.dnsmasq

all-servers

domain=b37

dhcp-leasefile=/tmp/dnsmasq.leases

dhcp-lease-max=19

dhcp-option=lan,3,192.168.1.1

dhcp-authoritative

stop-dns-rebind

expand-hosts

***



Kong
Kong's picture
Try to reconfigure the router

Try to reconfigure the router to use of the address space 192.168.0.x, so the router would be 192.168.0.1, instead of now 192.168.1.1

Does this change anything?

icehacker
icehacker's picture
try and uncheck DHCP

try and uncheck DHCP-Authoritative after the pppoe connection is established clients should get ip

elliot
elliot's picture
Thanks guys,

Thanks guys,

I got an interim solution by reverting to a really old config which doesn't seem to have this issue. It does have the same address space (192.168.1.0) and DHCP-Authoritative is enabled so the issue is caused by something else.

Otherwise the config is really different from the new (not working) one, though. Does anyone happen to know an easy way to find the differences between two configs?

icehacker
icehacker's picture
can you post your config

can you post your config

elliot
elliot's picture
Do you mean the .bin file I

Do you mean the .bin file I get when I take a config backup?

icehacker
icehacker's picture
elliot said: Do you mean the

elliot said: Do you mean the .bin file I get when I take a config backup?

just wanted to know how you configured dhcp and dns using dnsmaq.