OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: BigNutz on March 04, 2024, 06:01:51 PM

Title: Local Hostname resolution with Unbound DNS issue
Post by: BigNutz on March 04, 2024, 06:01:51 PM
Dear OPNsense community,

So I have this issue where local hostnames on my LAN can not be resolved. The only host that can be resolved is the OPNsense host and "outside" public hosts such as google.

I have specified an upstream DNS server under System|Settings|General. Also, Unbound DNS is enabled with "Network Interfaces set" to <LAN> and "Register ISC DHCP4 Leases" enabled, Local Zone Type set to <Transparent>. KEA DHCP is enabled and listening on LAN network, under Subnets I have defined my pool and specified the DNS server to OPNsens' LAN-ip address. Finally, the domain is specified under Syste|Settings|General so that should be inhereted by Unbound DNS and KEA.

Now, my hosts are able to resolve DNS records for public records such as google.com and the OPNsense host but not each other. When looking under "Services: Kea DHCP: Leases DHCPv4" I can see the hostnames associated with each IP (provided by the hosts themselves) but still, the problem resides.

As a temporary solution, I have specified Unbound DNS Overrides which is working.

Any help is much appreciated.

All the best,
BigNutz

Edit: "Unbound DNS: Access Lists" is set to Default <Allow>
Title: Re: Local Hostname resolution with Unbound DNS issue
Post by: Saarbremer on March 04, 2024, 08:24:31 PM
You do notice that the unbound settings page says "ISC DHCP4 Leases" and not "KEA DHCP"?

I guess it is just not implemented, yet.
Title: Re: Local Hostname resolution with Unbound DNS issue
Post by: F1Geir on March 05, 2024, 09:38:31 AM
DNS update from KEA DHCP is not implemented yet.
I'm also waiting for that feature.
Title: Re: Local Hostname resolution with Unbound DNS issue
Post by: BigNutz on March 05, 2024, 11:41:16 AM
Quote from: Saarbremer on March 04, 2024, 08:24:31 PM
You do notice that the unbound settings page says "ISC DHCP4 Leases" and not "KEA DHCP"?

I guess it is just not implemented, yet.

You are right. I had completely missed that. Thank you for pointing that out.
Title: Re: Local Hostname resolution with Unbound DNS issue
Post by: BigNutz on March 05, 2024, 11:43:05 AM
Quote from: F1Geir on March 05, 2024, 09:38:31 AM
DNS update from KEA DHCP is not implemented yet.
I'm also waiting for that feature.

Is there any information on when it may be available?
Title: Re: Local Hostname resolution with Unbound DNS issue
Post by: Patrick M. Hausen on March 05, 2024, 11:48:25 AM
Wait for the release notes for 24.7 ...