[Dnsmasq-discuss] Any way to set the lease-time for hosts derived from /etc/ethers?

richardvoigt at gmail.com richardvoigt at gmail.com
Sat May 9 04:55:34 BST 2015


On Fri, May 8, 2015 at 2:35 PM, Simon Kelley <simon at thekelleys.org.uk>
wrote:

> On 04/05/15 12:42, Rick Thomas wrote:
> >
> > Is there any way to set the lease time for a client derived from the
> > /etc/ethers file?
> >
> > I can set a lease time for a lease derived from a “dhcp-range” or
> > “dhcp-host” config statement, but I can’t find any way to set it for
> > the “implied” dhcp-host config when the host comes from /etc/ethers
> > via a “read-ethers” config.
> >
>
> You can't put a lease time in /etc/ethers. The format of the ethers file
> is defined outside dnsmasq and doesn't have the syntax to represent it.
>
> You can keep the /etc/ethers file and include lease times separately  in
> dhcp-hosts configs with just a MAC addresses or hostname and lease time.
>

You presumably have a "dhcp-range static" option already configured, since
it is needed for read-ethers to work, and the lease time can be set there
for the entire group, but not individually.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20150508/929f1208/attachment.html>


More information about the Dnsmasq-discuss mailing list