OPNsense Forum

English Forums => General Discussion => Topic started by: athurdent on January 26, 2021, 06:26:25 PM

Title: Registering IPv6 hostnames when tracking interface problem
Post by: athurdent on January 26, 2021, 06:26:25 PM
Hi,
trying to register my clients with their IPv6 IP, for Sensei DNS host enrichment to work.
I'm tracking a WAN interface, the client gets and uses DHCPv6 IPv6 just fine.
But unbound registers it as:
local-data-ptr: "::50 iphone-11-pro-v6.local-lan"
local-data: "iphone-11-pro-v6.local-lan IN AAAA ::50"

DHCPv6 config, see screenshot (DUID obfuscated)
Any idea how to get this to work?
Title: Re: Registering IPv6 hostnames when tracking interface problem
Post by: franco on January 26, 2021, 07:19:39 PM
LAN tracking WAN with manual DHCPv6?


Cheers,
Franco
Title: Re: Registering IPv6 hostnames when tracking interface problem
Post by: athurdent on January 26, 2021, 07:24:33 PM
Yep, sorry, forgot to mention. I'm using:
Allow manual adjustment of DHCPv6 and Router Advertisements
for that LAN interface tracking WAN.
Thanks, Franco!
Title: Re: Registering IPv6 hostnames when tracking interface problem
Post by: franco on January 27, 2021, 09:15:18 AM
Ok, we discussed this here https://github.com/opnsense/core/issues/2544

I can patch up the address for you quickly, but reload behaviour will remain a problem (when prefix changes and Unbound will not automatically reconfigure).


Cheers,
Franco
Title: Re: Registering IPv6 hostnames when tracking interface problem
Post by: franco on January 27, 2021, 09:18:56 AM
PS: https://github.com/opnsense/core/issues/4642
Title: Re: Registering IPv6 hostnames when tracking interface problem
Post by: athurdent on January 27, 2021, 09:24:27 AM
Quote from: franco on January 27, 2021, 09:15:18 AM
Ok, we discussed this here https://github.com/opnsense/core/issues/2544

I can patch up the address for you quickly, but reload behaviour will remain a problem (when prefix changes and Unbound will not automatically reconfigure).


Cheers,
Franco
A patch would be really cool! At least in my case (Unitymedia/Vodafone Cable), the prefix rarely ever changes.
If it changed, would I have to reload Unbound manually?
Thanks again!
Title: Re: Registering IPv6 hostnames when tracking interface problem
Post by: gromit on January 31, 2021, 04:20:20 AM
I'd appreciate a fix for this, too.  I'm on Comcast and so all my internal IPv6 interfaces track the PD WAN interface.  Having correct IPv6 internal hostnames would be great!