Hi Alkis, I think you can use addn-hosts for name<=>IP address mapping and use dhcp-hostsfile just for mac address assignment to existing pair. But it prevents ability to create one file the other one, because primary data are split into two files. I guess creation of addn-hosts from dhcp-hosts by a script is the best solution available. I don't know about any way just with one line per host.
Perhaps a flag could be added to dhcp-range, requesting also addition of dhcp-hosts to static dns. Would it help if those hosts were assigned infinite TTL to add permanent hostnames for them, similar to addn-hosts record? I guess it would not hurt having permanent names on permanent leases. Cheers, Petr On 10/3/21 10:21, Alkis Georgopoulos wrote: > Hi, I'm using a dhcp-hostsfile with lines like the following: > > b8:27:eb:c4:a5:4a,set:lab1,192.168.67.100,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: > 3(NXDOMAIN)" > > 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 > > Please Cc me as I'm not in the list. > > Thank you, > Alkis Georgopoulos > > _______________________________________________ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss > -- Petr Menšík Software Engineer Red Hat, http://www.redhat.com/ email: pemen...@redhat.com PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss