OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of ritztro »
  • Show Posts »
  • Topics
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

  • Messages
  • Topics
  • Attachments

Topics - ritztro

Pages: [1]
1
General Discussion / Generate IPv6 hostnames from DHCPv4 lease hostnames
« on: November 24, 2022, 07:04:39 am »
Hi!

I recently setup an OPNsense router for my home network. Lately, I've been trying to configure IPv6 support. One thing I've noticed is that IPv6 addresses on my local network lack hostnames. After doing some reading, I've noticed this is common/expected and a common complaint with IPv6.

Since IPv6 clients aren't required to register a hostname when requesting an address (in DHCPv6) and don't even request an address with SLAAC, I was curious if there was some mechanism to automatically generate hostnames for IPv6 addresses on a local network (particularly SLAAC based addresses since this would also support Android devices).

I found ip6neigh, which is a tool available to OpenWrt users to generate IPv6 hostnames from corresponding IPv4 DHCP leased hostnames (if available). Is there anything similar for OPNsense? I've heard maybe Dnsmasq has a hacky implementation to support this?

I'm imagining something that can generate hostnames for local IPv6 addresses and then supports automatic registration with a local DNS resolver, like Unbound.

Would this even be possible/useful for devices that use privacy extensions? I think ip6neigh might try to grab all IPv6 addresses associated with a device (?) and hope it finds a stable one (based on the device MAC), associating  the other IPv6 addresses with that address, and using the MAC to do an IPv4 lease hostname lookup.

Edit: I wanted to note that my network works fine, this is more of a usability/ease-of-use focused question (e.g. using rDNS to see hostnames in reports/logs/stats/etc rather than ipv6 ips)

Pages: [1]
OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2