[Dnsmasq-discuss] dnsmasq DHCP lease (in)validation question

Heinz Deinhart heinz at nix.at
Sun May 7 16:54:59 BST 2006


Hi,

i use dnsmaq(2.30) as a dhcp server with only static Adresses like this:
dhcp-range=28.30.40.128,static,255.255.255.128,8h
I have the information about hosts in /etc/ethers and /etc/hosts.

I have a PC that currently has a lease (28.30.40.135). Now i change 
the IP of that PC in the hosts file to 28.30.40.202 and force dnsmasq 
to reread the files (HUP). Note that old lease is still in 
/var/lib/misc/dnsmasq.leases

Now i reboot the client and it make and dnsmaq seems to assign the 
adresses (28.30.40.135) of the old lease. But it says:
dnsmasq: not giving name flinders to the DHCP lease of 28.30.40.135 because the name exists in /etc/hosts with address 128.130.40.202
Shouldn't dnsmasq be clever and discard the lease if it does not 
reflect the current hosts/ethers settings when a DISCOVER comes?

Or is this all my mistake and a missed the right config switch?

Thanks a lot,
Heinz


-- 
Heinz Deinhart
emp at nix.at



More information about the Dnsmasq-discuss mailing list