[Dnsmasq-discuss] Do we have good way to register SLAAC clients?
Eric Fahlgren
ericfahlgren at gmail.com
Fri Jun 9 15:38:55 UTC 2023
On Wed, Jun 7, 2023 at 8:14 AM Petr Menšík <pemensik at redhat.com> wrote:
> Is there any better way, how to provide more friendly names for IPv6
> devices? Sometime we want privacy instead, but that is not needed in
> trusted network like our own network. Apple devices use Multicast DNS to
> announce themselves anyway. Since IPv6 addresses are longer, they should
> have name resolution working by default. But they don't.
>
Hi Petr,
I have been looking into this off and on for the last year or two and
haven't found a good solution (where "good" is defined as "apt install
give-me-ipv6-dns-auto-names").
My two use cases are both on-LAN, so privacy is a non-issue:
1) making tcpdump show host names when I do traces;
2) allow wife and other home users to just say "https://videos.lan/"
instead of me explaining and dealing with IP addresses.
My solution is a cron script on my (Linux/OpenWrt) gateway device that
looks at the DHCPv4 table to collect MAC:host-name pairs, then looks at 'ip
-6 neigh show' to get MAC:IPv6 pairs, matches up the names and SLAAC IPv6s
to the names and writes them to a dnsmasq config file. (The config file
still needs manual cleaning, as I don't have anything logging expiration
times.)
It would be lovely if there were a nice demon that just sat and watched for
NDP NA/NS messages and used that information (including TTLs) to do a DNS
UPDATE instead of my hack. I'm not sure where to get host names on an
IPv6-only network, as I haven't looked into that part deeply...
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20230609/a2bae50d/attachment.htm>
More information about the Dnsmasq-discuss
mailing list