[Dnsmasq-discuss] Using dhcp-hosts for static entries

Olivier oza.4h07 at gmail.com
Sat Aug 22 13:38:40 BST 2020


Hello,

I've discovered dhcp-hostsfile option.

Is it possible to use this file as an alternative way to define static DNS
entries as you would with an /etc/hosts file (and as updating with a simple
SIGUP seems be convenient to me) ?

If I'm correctly understanding man page (see [1]), it should be possible
with a line like
"--dhcp-host=lap,192.168.0.199" which "allocate the machine lap the IP
address 192.168.0.199".

In this exact contact, what does "lap" stands for given dhcp-host syntax
(see [2]) ? Is it an hostname ? An id ? A tag ?

May I add tha with Debian Buster's 2.80, both lines bellow failed:
foo,1.2.3.4
1.2.3.4,bar

[1] http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html
[2] -G,
--dhcp-host=[<hwaddr>][,id:<client_id>|*][,set:<tag>][tag:<tag>][,<ipaddr>][,<hostname>][,<lease_time>][,ignore]

Best regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20200822/872637fc/attachment.html>


More information about the Dnsmasq-discuss mailing list