[Dnsmasq-discuss] About hostname with hyphens
Reynir Björnsson
reynir at reynir.dk
Wed Nov 27 12:24:01 UTC 2024
Dear list,
>> Basically, this syntax works for both aliases:
>> dhcp-host=CE:BA:38:E3:7B:DF,nas,nas-2024
>
> It would be interesting to know whether there are additional definitions
> for nas or nas-2024 somewhere in your configuration.
> I'm surprised your dhcp-host works at all.
>
> According to dnsmasq's documentation, dhcp-host only allows one hostname:
>
> > Only one hostname can be given in a --dhcp-host option, but aliases
> are possible by using CNAMEs. (See --cname )
Looking at the code in src/option.c it seems the behavior is dhcp-host
will accept any number of hostnames when parsing, but only use the
latest parsed hostname.
To me, this seems like a bug. At least, it is in my opinion poor
usability that previous hostnames are silently ignored.
Best,
Reynir Björnsson
More information about the Dnsmasq-discuss
mailing list