[Dnsmasq-discuss] dhcp-host ignored
Alex Malinovich
alexmalinovich at protonmail.com
Sat Aug 15 00:12:25 UTC 2026
(My apologies to the list, my earlier mail went through as encrypted for some reason. Resending for readability.)
On Friday, August 14th, 2026 at 02:39, Fabiano Sidler <dnsmasq at aliases.systohc.net> wrote:
> Hi folks!
> | dhcp-host=52:54:00:ff:bc:ed,myhost.example.org,192.168.100.10
I don't know if this is specifically causing the problem, but the hostname should be just the name of the host, not the FQDN. So, in your example, it should just be `myhost`.
> So the MAC address "seen" by Dnsmasq is the correct one. Also, when I copy
> the file to the name with a .conf appended, dnsmasq -d complains
>
> dnsmasq: duplicate dhcp-host IP address 192.168.100.10 at line 1 of
> /etc/dnsmasq.d/myhost.example.org.conf
>
> so I can be sure that the one without .conf extension is read.
It's generally a good idea to provide your full config along with log files to make it easier to track things down. Specifically, if you have a conf-dir setting in there that could also be affecting this. I'd start with changing the dhcp-host line to remove `.example.org` and if that doesn't work come back with full conf and log to make it easier to diagnose.
More information about the Dnsmasq-discuss
mailing list