[Dnsmasq-discuss] bad dhcp-host because of mac-address?

Simon Kelley simon@thekelleys.org.uk
Wed, 23 Mar 2005 12:01:41 +0000


Daniel Link wrote:
> Hi!
> 
> I've installed dnsmasq today on an almost fresh installation of FreeBSD 5.3
> and have one small problem configuring it. I want two computers in my
> networks to be assigned static IPs, but this only works for one of them.
> When including the other in the dnsmasq.conf config file, I get a "bad
> dhcp-host" error/warning. Could this be a bug? Here are the two lines of
> which the first gives the error, the other works:
> 
> dhcp-host=00:10:DC:19:F9:FA,Poseidon,192.168.1.2
> dhcp-host=00:00:1C:0C:47:B3,Zeus,192.168.1.2
> 
> Thanks in advance,
> 
>   Daniel
> 

I would expect that dnsmasq would die at startup with
"duplicate IP address 192.168.1.2 in dhcp-config directive."

The fix is the obvious one: don't attempt to give two machines the same 
IP address.

HTH

Simon.