[Dnsmasq-discuss] Dynamic-range clients don't get the same IP address when rebooted

John Groves (jgroves) jgroves at micron.com
Thu Jun 23 21:02:28 BST 2016


I'm a long-time dnsmasq user, but first-time poster.  I can't imagine that this hasn't been discussed before, but I wasn't able to come up with search terms to find it.

This arises because we are creating and destroying VMs like crazy for automated software testing.  The VMs are using dynamic-range addresses, and every time a VM is rebooted it gets a new address, even if there is a valid existing lease.  And we see leases for the same mac address accumulating in the leases file, like this:

1466722310 52:54:00:51:e7:ad 10.114.5.186 localhost ff:00:51:e7:ad:00:01:00:01:1e:fe:ec:44:52:54:00:51:e7:ad
1466722212 52:54:00:51:e7:ad 10.114.5.185 * ff:00:51:e7:ad:00:01:00:01:1e:fe:eb:e2:52:54:00:51:e7:ad
1466719093 52:54:00:51:e7:ad 10.114.5.184 * ff:00:51:e7:ad:00:01:00:01:1e:fe:df:b3:52:54:00:51:e7:ad
1466718818 52:54:00:6f:8c:2a 10.114.5.227 * ff:00:6f:8c:2a:00:01:00:01:1e:fe:de:9f:52:54:00:6f:8c:2a
1466715993 52:54:00:4a:54:e7 10.114.5.179 * ff:00:4a:54:e7:00:01:00:01:1e:fe:d3:96:52:54:00:4a:54:e7

Is there a way to coax dnsmasq to give out an address matching the still-valid lease, if any?

FYI the VMs are mostly Fedora 2[234] and RHEL7

The changing addresses are a challenge for our test automation...

Thanks,
John Groves
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20160623/eb0709a6/attachment.html>


More information about the Dnsmasq-discuss mailing list