[Dnsmasq-discuss] Same IP for a range of MAC addresses?

Stephen Lee splee at patchcomputers.com
Sat Apr 4 06:05:14 BST 2009


On Sat, 2009-04-04 at 00:35 -0400, Tom Metro wrote:
> Stephen Lee wrote:
> 
> > I've written a script to detect when the ethernet cable is unplugged
> > after programming a device and to restart dnsmasq. This then allows
> > the same IP to be leased out again but to a different MAC.
> 
> I'm surprised that works, as the lease file ought to keep things 
> persistent across Dnsmasq restarts. Unless you're purging the lease file 
> in between.
> 
Yup. cat /dev/null > /var/lib/misc/dnsmasq.leases. I would have thought
that by setting cache-size=0, nothing would be cached but I must be
interpreting the setting incorrectly.

Stephen



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the Dnsmasq-discuss mailing list