[Dnsmasq-discuss] dnsmasq distributes wrong DNS server address via DHCP if interface has multiple IP address

Daniel Mentz 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 brd scope global eth1:1
     inet brd scope global secondary eth1

dnsmasq sets the DNS server address to although it's 
listening on


I worked around this problem by making the first address of 
the eth1 interface. But I think dnsmasq should not set the DNS server 
(via DHCP) to 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
  Daniel Mentz

More information about the Dnsmasq-discuss mailing list