I am using dnsmasq to serve IPs for about 200 vservers. Leasetime is infinite: dhcp-range=10.0.1.2,10.0.1.254,infinite
I don't know why, but 1 vserver changed IP. Let's say MAC address changed.
I wanted the vserver to get back his old IP, so i shut down the interface and edited /var/lib/misc/dnsmasq.leases (changed new/old IP)
After reboot vserver had wrong new IP again. So i think /var/lib/misc/dnsmasq.leases is just a log-file?!
I fixed the problem with changing vserver IP on console - after reboot vserver had old IP.
But i want to understand - how does dnsmasq save the information "i want to give this IP to this MAC" and how can i change this?!