[Dnsmasq-discuss] dnsmasq distributes wrong DNS server address via
DHCP if interface has multiple IP address
daniel.m at sent.com
Wed Jun 20 19:54:31 BST 2007
dnsmasq distributes the wrong DNS server address on my network.
According to the manual page dnsmasq should set the DNS server address
via DHCP to the address of the machine dnsmasq is running on:
".... and the DNS server and default route are set to the address of the
machine running dnsmasq ..."
The problem might be that multiple IP addresses are assigned to the eth1
gate:~# ip -4 address show eth1
3: eth1: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000
inet 192.168.10.8/24 brd 192.168.10.255 scope global eth1:1
inet 192.168.10.2/24 brd 192.168.10.255 scope global secondary eth1
dnsmasq sets the DNS server address to 192.168.10.8 although it's
listening on 192.168.10.2:
I worked around this problem by making 192.168.10.2 the first address of
the eth1 interface. But I think dnsmasq should not set the DNS server
(via DHCP) to 192.168.10.8 because it's not listening on this address.
Btw, an instance of BIND9 is bound to this address. Dnsmasq is bound to
Is this a bug in dnsmasq or am I getting something wrong?
Thanks in advance
More information about the Dnsmasq-discuss