[Dnsmasq-discuss] dnsmasq: dhcp-server with disabled dns-server: /etc/hosts ignored
Michael Traxler
M.Traxler at gsi.de
Fri Oct 21 21:23:28 UTC 2022
Hello,
dnsmasq-2.87:
It took me quite some time to figure this out :-)
When you disable the DNS-server via
port=0
the /etc/hosts file is ignored and also the
addn-hosts=<fn>
is ignored.
This then results in the problem, that the
DHCP-server still works, but if you use the
dhcp-host=da:7a:3a:62:7d:d2,trb
where trb is a name in /etc/hosts
dnsmasq reacts with:
DHCPDISCOVER(enp2s0) da:7a:3a:62:7d:d2 no address available
I checked via strace that it really doesn't even open
/etc/hosts nor the given file via the "addn-hosts" option.
Looks for me like a bug. I can not find a logical reason, why a dhcp-server
*needs* to have a running DNS-server.
Or is it a feature? :-)
Thanks a lot,
Michael
More information about the Dnsmasq-discuss
mailing list