Small "issue" with IPv6 hostname resolution

Started by Vexz, April 28, 2024, 07:34:58 PM

Previous topic - Next topic
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?

Yeah, have you meddled with Unbound general settings interface selection?


Cheers,
Franco

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.

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

April 28, 2024, 08:56:38 PM #4 Last Edit: April 28, 2024, 09:07:05 PM by Vexz
I'm talking about ISC DHCPv6 static mappings. Oh, and the OPNsense's mapping.

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

April 29, 2024, 05:46:05 PM #6 Last Edit: April 29, 2024, 06:01:49 PM by Vexz
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.