From what I understand of the /usr/sbin/unbound-dhcp-leases-bridge
program
At startup
1 - Saves the static addresses from the /var/ipfire/main/hosts
file to /etc/unbound/hosts.conf
2 - Saves the assigned DHCP addresses from the /var/state/dhcp/dhcpd.leases
file to /etc/unbound/dhcp-leases.conf
3 - Saves the addresses from the /var/ipfire/dhcp/fixleases
file to /etc/unbound/dhcp-leases.conf
if it is not already declared static in /etc/unbound/hosts.conf
Then
When a host connects via DHCP, it adds its address and hostname to the local_data if they are not already present in /etc/unbound/dhcp-leases.conf
.
At the end of the lease DHCP, removes the host from the local_data
My duplicate registration issue with a different name for my “matebook” stems from the fact that the entry was in both /var/ipfire/main/hosts
and /var/ipfire/dhcp/fixleases
Therefore, it wasn’t in /etc/unbound/dhcp-leases.conf
the rule to apply:
Do not define a host in static hosts if it is already defined in DHCP fixedleases