I’m not familiar with all the management rules coded in /usr/sbin/unbound-dhcp-leases-bridge
, but they seem consistent.
-
The hosts file must contain only static IP addresses (not using DHCP).
-
The fixleases file must contain the IP addresses to be assigned by DHCP when the client connects.
-
The local DNS records static IP addresses.
-
The local DNS records IP addresses assigned by DHCP (fixed or dynamic).
However, I don’t know the rule that defines the host name, and whether it should be assigned by the client or the DHCP server.
For IPFire (in this version 193):
- The server defines the hostname if it is present in fixleases; otherwise, it uses the client’s hostname.
This is consistent, but this last rule doesn’t work if the address is previously defined as static.
In this case it records both, the Local DNS contains two hostnames (that of the server and that of the client) for the same IP address
Its a bug, in my opinion.