I'd prefer (i) since that lets libvirt work properly with
existing
dnsmasq versions which are deployed.
Regards,
Daniel
I cleared some more queries regarding leasesfile-ro option. Once can
read the conversation at
http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2014q2/008656.html.
TL;DR:
(i) We have to change the leasehelper program to honor the event
'init' and print leases info in dnsmasq leases format (so that dnsmasq
knows about previous leases if it is restarted for some reason).
(ii) Since we support DHCPv6, we will need to modify the JSON format
to store server DUID too. Since we have one custom leases file for
each network, I think it will suffice to store the DUID is just once
in the JSON. Something like this:
[
"server-duid": "00:01:00:01:1b:40:8d:94:00:25:
64:8b:e4:2c"
{
"iaid": "1221229",
"ip-address": "2001:db8:ca2:2:1::95",
"mac-address": "52:54:00:12:a2:6d",
"hostname": "Fedora20",
"client-id": "00:04:1a:c1:d9:6b:5a:0a:e2:
bc:f8:4b:1e:37:2e:38:22:55"
,
"expiry-time": 1393244216
},
{
"ip-address": "192.168.150.208",
"mac-address": "52:54:00:11:56:b3",
"hostname": "Wani-PC",
"client-id": "01:52:54:00:11:56:b3",
"expiry-time": 1393244248
}
]
Do we want this in 1.2.6?
Regards,
Nehal J Wani