dhclient.conf

February 10th, 2005 | by jg3 |

If the DHCP server is configured to update the DNS server, you can inject your hostname if you configure your /etc/dhclient.conf file correctly:


~> cat /etc/dhclient.conf
# $: src/etc/dhclient.conf,v 1.3 2001/10/27 03:14:37 rwatson Exp $
#
# This file is required by the ISC DHCP client.
# See “man 5 dhclient.conf” for details.
#
# In most cases an empty file is sufficient for most people as the
# defaults are usually fine.
#
send host-name “fully-qualified.domain.name”;

Yeah, it’s just one line, I know … but it took me a while to figure out the correct option to send and syntax to send it in. I’m not the admin of the DHCP or DNS server, so I’m not sure how much that impacts what configs are suitable for this setting.

Filed under:

Related stuff

Sorry, comments for this entry are closed at this time.