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

2022-07-04 Thread James Feeney via Dnsmasq-discuss

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.


Oops - I had "bind-interfaces" instead of "bind-dynamic", and DHCPv6 was not 
listening.

Apparently, the ether address *does* associate with an IPv6 address in /etc/hosts when 
using the hostname in /etc/ethers, so that actually works.  But then, 
"dhcp-host=..." would still be needed to use the client DUID instead of the 
ether address.

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


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

2022-07-04 Thread James Feeney via Dnsmasq-discuss

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.

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


[Dnsmasq-discuss] "dig" and "host" unhappy with dhcp-host= - "Got bad packet: extra input data"

2022-06-07 Thread James Feeney via Dnsmasq-discuss

dnsmasq 2.86
and
dnsmasq-git 2.87test8.r16.g770bce9-1

Does dnsmasq create dns entries for hosts with dhcp-host= entries?

Or, instead, must all of these dhcp-host= hosts be redundantly listed in 
/etc/hosts?

For example,

$ host 172.16.16.2
;; Got bad packet: extra input data
74 bytes
5c c8 85 80 00 01 00 01 00 00 00 00 01 32 02 31  \2.1
36 02 31 36 03 31 37 32 07 69 6e 2d 61 64 64 72  6.16.172.in-addr
04 61 72 70 61 00 00 0c 00 01 c0 0c 00 0c 00 01  .arpa...
00 00 00 00 00 14 0b 35 30 74 63 6c 72 6f 6b 75  ...50tclroku
74 76 00 05 70 72 69 6d 65 00tv..prime.

$ host 50tclrokutv
Host 50tclrokutv not found: 3(NXDOMAIN)

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss