Categories
Tech Tips

How to make dhclient send hostname to DHCP server


My Arch Linux recently switched from dhcpcd to dhclient as the DHCP client. The DHCP server isn’t assigning a FQDN to this client and it turns out that dhclient isn’t telling the server what’s the client’s hostname.

Solution:

Create config file /etc/dhclient.conf with content:

send host-name = gethostname();