[Dnsmasq-discuss] dnsmasq handling of duplicate hostnames
Simon Kelley
simon at thekelleys.org.uk
Sun May 13 09:42:31 BST 2018
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, mike at 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
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
More information about the Dnsmasq-discuss
mailing list