[Dnsmasq-discuss] How to answer DNS for a host that has not gotten a lease?

John Hanks griznog at gmail.com
Thu Dec 29 10:35:37 GMT 2016


On Thu, Dec 29, 2016 at 1:06 PM Albert ARIBAUD <albert.aribaud at free.fr>
wrote:

> What you want is provided by option host-record, and manage two files:
> the static lease file (the one in step 2) to map the MAC and IP via DHCP
> and possibly assign the DHCP client a hostname, and a hosts file to
> map the IP and name statically in the DNS.
>
> (and no, I don't know of a way to combine dhcp-host and host-record
> into a single line, and I don't think there is except maybe through
> scripting)
>
> This is effectively what I do now, with a reload script that automates
maintenance of the hosts entries. I was just hoping to avoid maintaining
two configurations for each host, even if one is easy enough to generate
from the other.

Thanks,

jbh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20161229/5795985d/attachment.html>


More information about the Dnsmasq-discuss mailing list