OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: devilkin on September 12, 2024, 10:16:22 AM

Title: Registering ipv6 lan addresses in DNS?
Post by: devilkin on September 12, 2024, 10:16:22 AM
Hi,

I was wondering if there's a way to get ipv6 addresses registered in unbound for resolving in the local lan, without having to do this manually?

I'm in the process of reconfiguring my internal network to also fully support IPv6 using SLAAC. I've also added an ULA so ideally I'd like to have that be automatically registered in unbound - but sofar the solution is eluding me.

The only way I see forward is to use dhcpv6, but if I can avoid an extra service (also android devices don't do dhcpv6), it'd be fantastic.
Title: Re: Registering ipv6 lan addresses in DNS?
Post by: bartjsmit on September 12, 2024, 11:55:28 AM
Isn't this what mDNS (bonjour, avahi, zeroconf) is for?
Title: Re: Registering ipv6 lan addresses in DNS?
Post by: dseven on September 12, 2024, 11:56:59 AM
How would opnsense know what name to associate with a SLAAC address?
Title: Re: Registering ipv6 lan addresses in DNS?
Post by: devilkin on September 12, 2024, 01:06:52 PM
I was hoping there was someone with a cool idea.

When working with dhcpv6, how does one need to configure isc dhcp to do the registration?
I have the impression it also doesn't work out of the box.
Title: Re: Registering ipv6 lan addresses in DNS?
Post by: dseven on September 12, 2024, 02:39:35 PM
AFAIK it's not supported for dynamic leases, but it does "just work" for DHCPv6 static mappings.
Title: Re: Registering ipv6 lan addresses in DNS?
Post by: devilkin on September 12, 2024, 04:08:41 PM
Ah. That works too, just have to figure out how to get the DUIDs. Thanks.
Title: Re: Registering ipv6 lan addresses in DNS?
Post by: stanthewizzard on September 12, 2024, 04:19:20 PM
My case
Dhcpv6
Static lease (to have the DUID juste check the ip on the device then check in on the lease then use the plus button)

VoilĂ 
Title: Re: Registering ipv6 lan addresses in DNS?
Post by: devilkin on September 12, 2024, 04:25:30 PM
That is so straightforward it hurts. Thx!
Title: Re: Registering ipv6 lan addresses in DNS?
Post by: devilkin on September 12, 2024, 10:09:40 PM
Hmmz. Ofcourse, this means that it'll be using your public ipv6 prefix, which is not guaranteed.
Does dhcpd6 update the ip addresses, or will it keep using the old ones?

Or should I just like hand out specific ula's..?