[Dnsmasq-discuss] DNS from dhcp-host while client is offline

Geert Stappers stappers at stappers.nl
Sun Oct 3 12:37:55 UTC 2021

Hello Alkis,
Hello Dnsmasq mailinglist,

On Sun, Oct 03, 2021 at 11:21:00AM +0300, Alkis Georgopoulos wrote:
> Hi, I'm using a dhcp-hostsfile with lines like the following:
> b8:27:eb:c4:a5:4a,set:lab1,,rpi
> When that client boots, I can run `host rpi localhost` and dnsmasq tells me
> its IP.
> But when that client is offline, dnsmasq replies "Host rpi not found:

I consider that a good feature of dnsmasq,
having in DNS what is recently been seen by DHCP.

> Is there any way for dnsmasq to put all the dhcp-hosts into its DNS view
> even when these clients are offline?
> Otherwise I guess I could write a bash script that converts a dhcp-hosts
> file into an addn-hosts file with lines like:
> rpi

Yes, that way is DHCP not involved.

> Thank you,
> Alkis Georgopoulos

Geert Stappers
Silence is hard to parse

More information about the Dnsmasq-discuss mailing list