Feature #15651
closedKea DNS Resolver (Unbound) Integration (IPv4 and IPv6)
90%
Description
Issue to track integration between Kea and the DNS Resolver (Unbound)
This is already in progress.
Somewhat related to #5413 in that when this is complete that may be a non-issue or at least reduced significantly.
Related issues
Updated by Jim Pingle 5 months ago
- Related to Bug #5413: Reduce disruptions when changing DNS records from DHCP leases in Unbound added
Updated by Christian McDonald 4 months ago
- Status changed from In Progress to Feedback
- Plus Target Version set to 24.08
We now have a brand new integration with Kea that solves all of these issues and more. We now support both DHCPv4 and v6 DNS registration with unbound. Additionally, it is now possible to turn on registration globally for all subnets or override the registration policy per subnet. This allows for both per-subnet opt-in (aka global disable policy) or opt-out (aka global enable policy). It's very flexible.
The domain name that is appended to each lease hostname for registration is selected according to the following rules(first match wins).
1. Does the DHCP response contain a domain-name option? If so, use it.
2. If no domain-name option is present in the response, or we are handling a DHCPv6 lease, check it the response contains a search-domain option. If so, use the first one as multiple could be specified.
3. Use the system domain name.
Updated by Jim Pingle 4 months ago
- Status changed from Feedback to In Progress
- % Done changed from 0 to 80
There are a few things that still need some polishing, Christian is aware, some require changes in Kea that area already known and still pending. Notably:
- Lease entries synchronized from HA primary to secondary are not added to Unbound on secondary
- Lease entries are not added to Unbound at startup for existing leases, only during lease events
- Static mappings are only added to Unbound when a client requests a lease. If an entry is used as a placeholder for a static/non-DHCP client which never requests a lease, it does not get added to Unbound
Updated by Christian McDonald 3 months ago
Lease entries synchronized from HA primary to secondary are not added to Unbound on secondaryLease entries are not added to Unbound at startup for existing leases, only during lease events- Static mappings are only added to Unbound when a client requests a lease. If an entry is used as a placeholder for a static/non-DHCP client which never requests a lease, it does not get added to Unbound
Latest build addresses the first two areas
Updated by Jim Pingle 3 months ago
I can restart Unbound and still resolve DHCP clients on a standalone system or HA primary, so that part looks good.
I'm still not able to resolve hostnames for DHCP clients on the HA secondary. I see the lease data but can't resolve them.
One more issue I found while confirming the above:
Hostnames for static lease clients are not propagated from HA primary to secondary. Lease shows up on the secondary, but without a hostname. It's inconsistent, though, since it wasn't there initially but later on after I brought up another client, it did show up with a hostname in the lease database. So that might be trickier to track down.
Updated by Jim Pingle 3 months ago
- Related to Bug #15750: Hostnames for ISC DHCP leases are not removed from Unbound when switching to Kea added
Updated by Jim Pingle 3 months ago
- Related to Feature #15650: Kea Feature Integration for parity with ISC DHCP added
Updated by Jim Pingle 3 months ago
- Related to Bug #1819: DNS Resolver Not Registering DHCP Server Specified Domain Name added
Updated by Christian McDonald 2 months ago
- Status changed from In Progress to Resolved
Updated by Jim Pingle 2 months ago
- Plus Target Version changed from 24.08 to 24.11