Edit HOSTS does not change hostname in DHCP

I have some hosts that do not display a hostname in DHCP. When I associate a hostname for these devices in Edit Hosts, I can do an ‘nslookup’ from a computer and see that the hostname has been added. But when I go to Network->DHCP Server in IPFire, the hostnames I’ve added do not show on these devices. It would be nice if I could see hostnames under DHCP Configuration when I’ve added them in Edit Hosts. Is there a way to make this happen?

I suppose you refer to the ‘hostname’ in the table of dynamic leases.
These are the hostnames given in the DHCP request dialog. If your client doesn’t supply it, the field is empty.
The hosts files gives DNS information. Similiar info is provided by the remark field of the DHCP WUI page for fixed leases.
The unbound-dhcp-leases-bridge does the job for dynamic leases, but only for information known by the DHCP server.

For future reference, the hostname in the DHCP page are deriving from the computer or device that gets the DCHP IP address. So if you need to change the hostname, it would have to be done on the computer or device.

1 Like