The current behaviour is deliberate. It's actually the last Mac address to get a DHCP lease which gets the name, and it's to allow a host with multiple interfaces (possibly on multiple networks) to always have it's name associated with a currently-in-use interface.
Cheers, Simon. On 12/05/18 01:19, m...@farmwald.com wrote: > From testing, it appears that dnsmasq ignores duplicate hostnames, i.e. > if mac1 and mac2 have the same hostname, then one of them (the first to > request?) gets the name, and the other(s) get a blank name. > If this is correct, could this be changed to add a suffix to the > duplicate names, e.g.: > Mac1 Hostname > Mac2 Hostname(2) > Mac3 Hostname(3), etc. > > Note that any modified name would be fine: Hostname_2, Hostname-2, etc. > > Instead of the current: > Mac1 Hostname > Mac2 <blank> > Mac3 <blank> > > Thanks. > > > > _______________________________________________ > Dnsmasq-discuss mailing list > Dnsmasqfirstname.lastname@example.org > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > _______________________________________________ Dnsmasq-discuss mailing list Dnsmasqemail@example.com http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss