[Dnsmasq-discuss] 2 Nics, 2 domains, dhcp, trouble
Thu, 16 Dec 2004 08:30:44 -0800 (PST)
I have enjoyed using dnsmasq for a while now. Really
I have a rather complicated setup, running on debian
2.6. It *used to work ok*, and now -after reckless
updates- fails with "address already in use" :
- 3 nics, shorewall firewall : eth0, br0, br1
- OpenVPN tunnels running on br0 (VPN zone) and br1
- Dnsmasq running on br0 (domain vpn.mynet) and br1
(domain lan.mynet), using both dns and dhcp features.
To achieve the Dnsmasq part, I used a split conf, and
start 2 daemons.
The one for the Lan is setup like:
listen-address=192.168.1.1 <- this is br1
The one for the VPN is setup like this:
listen-address=192.168.2.1 <- this is br0
At some point in time (early 2.x versions) this setup
was working ok.
Right now, when I start the Lan instance, I can see
Starting DNS forwarder and DHCP server: dnsmasq.
flaky:~# netstat -an
udp 0 0 127.0.0.1:53 0.0.0.0:*
udp 0 0 192.168.1.1:53 0.0.0.0:*
udp 0 0 0.0.0.0:67 0.0.0.0:*
and starting the VPN instance fails:
/usr/sbin/dnsmasq -C /etc/dnsmasq-vpn.conf
dnsmasq: failed to bind DHCP server socket: Address
already in use
Is there something obvious I am missing to make
dnsmasq tie dhcp to a specific interface ?
I know I could define 2 networks in one config file,
but would like to keep the 2 instances totally
Thanks in advance for your advice,
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.