[Dnsmasq-discuss] dhcp-host=hostnameonly does not work

James Feeney james at nurealm.net
Tue Jul 5 00:13:03 UTC 2022


On 5/20/22 04:09, Matus UHLAR - fantomas via Dnsmasq-discuss wrote:
> just FYI, I use /etc/ethers for this, as this is unix database for mapping ethernet numbers to hostnames.
> 
> dnsmasq uses this database on my home router

Hmm - this only works if "-Z" or "read-ethers" is explicitly set - as I have just discovered the hard way - and and will not work when multiple ether addresses are assigned to the same IP address:

  dnsmasq-dhcp[965176]: ignoring /etc/ethers line 27, duplicate name or IP address

Instead, "dhcp-host=..." still has to be used to allow multiple ether addresses to be assigned to the same IP address.

Also, /etc/ethers does not accept IPv6 addresses, and, even when using the hostname instead, the ether address will not associate with an IPv6 address in /etc/hosts.  Again, "dhcp-host=..." still has to be used for DHCPv6.

Interesting, but too finicky.



More information about the Dnsmasq-discuss mailing list