[Dnsmasq-discuss] dnsmasq.lease file + description of its contents
simon at thekelleys.org.uk
Wed May 4 11:16:10 BST 2011
ramakanth varala wrote:
> iam running dnsmasq on my target board , my dnsmasq.conf has following
> # cat /var/etc/dnsmasq.conf
> 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.
Depending on how dnsmasq is compiled, that field may hold the _time_ the
lease expires, in seconds since January 1st 1970. It's clearly not that,
since the number would be much bigger, but if your system clock is not
set, that might explain things. Could you post the results of running
which will tell us which time mode dnsmasq is in, and make things clearer.
More information about the Dnsmasq-discuss