[Dnsmasq-discuss] dnsmasq.lease file + description of its contents

ramakanth varala ramakanth.varala at gmail.com
Wed May 4 10:56:44 BST 2011


iam running dnsmasq on my target board , my dnsmasq.conf has following
configurations

# cat /var/etc/dnsmasq.conf
strict-order
localise-queries
bogus-priv
domain-needed
expand-hosts
resolv-file=/var/etc/resolv.conf
dhcp-leasefile=/var/etc/dnsmasq.leases
dhcp-lease-max=253
dhcp-authoritative
domain=home
dhcp-vendorclass=CLASS0,IP-STB
dhcp-range=net:CLASS0,192.168.1.100,192.168.1.150,86400
dhcp-range=Private_LAN,192.168.1.2,192.168.1.254,86400,provide_hostname

Here last line of configuration file represents that, the lease
192.168.1.2 - 254 would be for 86400 seconds .


After this Lease would expire and Lan Hosts need to renew there lease.

But when i see the /var/etc/dnsmasq.lease file

# cat /var/etc/dnsmasq.leases
87954 00:1d:7d:bf:93:19 192.168.1.2 new-user-1 * * * *

the first coloumn is 87954.As per my understanding all hosts should
have lease expiry as 86400. But why does it show more that 86400.

Any configuration missing..?

Your comments would highly appreciated.



More information about the Dnsmasq-discuss mailing list