[Dnsmasq-discuss] About hostname with hyphens

Ercolino de Spiacico bellocarico at hotmail.com
Wed Nov 27 09:37:22 UTC 2024


I run into a minor issue (or so I believe to be) trying to setup a 
double alias to a single mac address retaining the dynamic IP and using 
the dhcp-host directive.

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

After some reading it came up this might be the way dnsmasq is currently 
handling the first hostname defined after the mac address as opposite to 
the second one which is considered a pure alias instead.

After some searches I couldn't find any relevant RFC that covers this 
specific point, the closes I got is RFC 1035 which defines that DNS 
should allow hyphens in hostnames; but that's it.

I'm just wondering if this behavior is wanted?

Thanks



More information about the Dnsmasq-discuss mailing list