<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 7, 2023 at 8:14 AM Petr Menšík <<a href="mailto:pemensik@redhat.com">pemensik@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Is there any better way, how to provide more friendly names for IPv6 <br>
devices? Sometime we want privacy instead, but that is not needed in <br>
trusted network like our own network. Apple devices use Multicast DNS to <br>
announce themselves anyway. Since IPv6 addresses are longer, they should <br>
have name resolution working by default. But they don't.<br></blockquote><div><br></div><div><div style="font-family:arial,sans-serif;color:rgb(0,0,0)" class="gmail_default">Hi Petr,</div><br></div><div style="font-family:arial,sans-serif;color:rgb(0,0,0)" class="gmail_default">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").<br></div><div style="font-family:arial,sans-serif;color:rgb(0,0,0)" class="gmail_default"><br></div><div style="font-family:arial,sans-serif;color:rgb(0,0,0)" class="gmail_default">My two use cases are both on-LAN, so privacy is a non-issue: <br></div><div style="font-family:arial,sans-serif;color:rgb(0,0,0)" class="gmail_default"> 1) making tcpdump show host names when I do traces; <br></div><div style="font-family:arial,sans-serif;color:rgb(0,0,0)" class="gmail_default"> 2) allow wife and other home users to just say "<a href="https://videos.lan/">https://videos.lan/</a>" instead of me explaining and dealing with IP addresses.</div><div style="font-family:arial,sans-serif;color:rgb(0,0,0)" class="gmail_default"><br></div><div style="font-family:arial,sans-serif;color:rgb(0,0,0)" class="gmail_default">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.)<br></div><div style="font-family:arial,sans-serif;color:rgb(0,0,0)" class="gmail_default"><br></div><div style="font-family:arial,sans-serif;color:rgb(0,0,0)" class="gmail_default">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...<br></div><div style="font-family:arial,sans-serif;color:rgb(0,0,0)" class="gmail_default"><br></div><div style="font-family:arial,sans-serif;color:rgb(0,0,0)" class="gmail_default">Eric<br></div></div></div>