[Dnsmasq-discuss] [PATCH] dhcp-host option: error out on multiple host names
Buck Horn
buckhorn at weibsvolk.org
Sat Nov 30 09:05:45 UTC 2024
On 27.11.24 10:37, Ercolino de Spiacico wrote:
> Basically, this syntax works for both aliases:
> dhcp-host=CE:BA:38:E3:7B:DF,nas,nas-2024
>
> where inverting the alias order doesn't (only nas is resolved)
> dhcp-host=CE:BA:38:E3:7B:DF,nas-2024,nas
I can't reproduce that behaviour.
The only name that resolves is the last one given, hyphen or not, just
as Reynir observed.
I therefore wonder whether there are additional definitions for nas or
nas-2024 somewhere in your configuration.
On 27.11.24 15:11, Ercolino de Spiacico wrote:
> In my case I like to add the installation year in the hostname, but
> for usability I also use a generic alias as well. Precisely like in
> the example I provided so "nas-2024" but also simply "nas". Both have
> a value to me.
That is possible by using a combination of dhcp-hosts and cname aliases,
just as dnsmasq's documentation recommends.
Did you give my sample suggestion from my previous post a try yet?
Kind regards,
Buck
More information about the Dnsmasq-discuss
mailing list