openwrtv4/package/network/services/dnsmasq/files
John Crispin b5bfb3534b dnsmasq: add host-specific lease time option for static hosts
Enable setting a host-specific lease time for static hosts.
The new option is called "leasetime" and the format is similar
as for the default lease time: e.g. 12h, 3d, infinite

Default lease time is used for all hosts for which there is
no host-specific definition.

The option is added to /etc/config/dhcp for the selected hosts:
  config host
        option name 'Nexus'
        option mac 'd8:50:66:55:59:7c'
        option ip '192.168.1.245'
        option leasetime '2h'

It gets appended to /var/etc/dnsmasq.conf like this:
  dhcp-host=d8:50:66:55:59:7c,192.168.1.245,Nexus,2h

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

SVN-Revision: 48801
2016-02-26 09:13:03 +00:00
..
dhcp.conf dnsmasq: fix config file typo 2015-06-08 04:48:08 +00:00
dnsmasq.conf packages: sort network related packages into package/network/ 2012-10-10 12:32:29 +00:00
dnsmasq.hotplug dnsmasq: rework init procedure 2013-12-21 13:31:28 +00:00
dnsmasq.init dnsmasq: add host-specific lease time option for static hosts 2016-02-26 09:13:03 +00:00