[Dnsmasq-discuss] DNS from dhcp-host while client is offline
stappers at stappers.nl
Sun Oct 3 12:37:55 UTC 2021
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:
> 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:
> 192.168.67.100 rpi
Yes, that way is DHCP not involved.
> Thank you,
> Alkis Georgopoulos
Silence is hard to parse
More information about the Dnsmasq-discuss