OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: Vexz on April 28, 2024, 07:34:58 PM

Title: Small "issue" with IPv6 hostname resolution
Post by: Vexz on April 28, 2024, 07:34:58 PM
Just wanted to point something out in case that needs a fix.

After a reboot of my OPNsense hostnames are only resolved by IPv4. Only if I restart Unbound it works again with IPv6.
So my wild guess is, that after a reboot the queue in which the services are started is the problem here. Unbound gets started first, then ISC DHCPv6 which is why Unbound doesn't know about the host's IPv6 adresses yet and hence won't register them.

Do you need further information about my setup?
Title: Re: Small "issue" with IPv6 hostname resolution
Post by: franco on April 28, 2024, 07:38:03 PM
Yeah, have you meddled with Unbound general settings interface selection?


Cheers,
Franco
Title: Re: Small "issue" with IPv6 hostname resolution
Post by: Vexz on April 28, 2024, 07:58:26 PM
Quote from: franco on April 28, 2024, 07:38:03 PM
Yeah, have you meddled with Unbound general settings interface selection?
No, it's set to "All", which is recommended. Never changed that.
Title: Re: Small "issue" with IPv6 hostname resolution
Post by: franco on April 28, 2024, 08:50:33 PM
Ok, I'm still not 100% sure I got this right. You mean local static mappings or local dynamic leases from your on instance of ISC DHCPv6?


Cheers,
Franco
Title: Re: Small "issue" with IPv6 hostname resolution
Post by: Vexz on April 28, 2024, 08:56:38 PM
I'm talking about ISC DHCPv6 static mappings. Oh, and the OPNsense's mapping.
Title: Re: Small "issue" with IPv6 hostname resolution
Post by: franco on April 29, 2024, 10:31:45 AM
What's the "OPNsense's mapping".

Static mappings are instant, except you use dynamic prefix magic prefix "::".

It would be easier to talk about the diff in the configuration...


Cheers,
Franco
Title: Re: Small "issue" with IPv6 hostname resolution
Post by: Vexz on April 29, 2024, 05:46:05 PM
Quote from: franco on April 29, 2024, 10:31:45 AM
What's the "OPNsense's mapping".
The GUA my OPNsense gets after a reboot.

Quote from: franco on April 29, 2024, 10:31:45 AM
Static mappings are instant, except you use dynamic prefix magic prefix "::".

It would be easier to talk about the diff in the configuration...
Yes, it's a dynamic IPv6 I get from my ISP. I use a PPPoE connection for IPv4 and I get a dynamic IPv6 prefix via DHCPv6. LAN interface IPv6 configuration type is "Track Interface".
I'd love to give you more information but I don't know what else you need to know. Do you need screenshots?

Edit:
One thing I noticed: After a reboot as soon as it's possible to login on the WebUI I can see on the Dashboard that every service is running except for dhcpd6 which supports my guess in the OP. No, I don't start it manually. It takes a few seconds but after a refresh I see it finally running.