[Novalug] getting linux hosts to bind their name to DHCP?

James Ewing Cottrell 3rd JECottrell3@Comcast.NET
Thu Sep 2 12:46:49 EDT 2010


  On 9/1/2010 10:15 PM, Theodore Ruegsegger wrote:
> Scott wrote:
>> In a post I made a few days back I mentioned that I was having problems
>> with my FIOS router not accepting the hostname for it's DNS, when my
>> linux hosts boot DHCP. They show up as new-host, new-host-1, etc.
>>
>> I did a quick search and it recommends adding the DHCP_HOSTNAME keyword
>> to the ifcfg-eth<?>  file in the /etc/sysconfig/network-scripts dir
>> (since these are RH/Fedora installs).
>>
>> Unfortunately this doesn't seem to work either? What am I missing?
> Not sure whether this is universal or just for Debian and derivatives,
> but I add a line to
> /etc/dhcp3/dhclient.conf:
>
> send host-name "basil";
>
> The file even comes with commented out examples of various options, e.g.,
> #send host-name "andare.fugue.com";
>
> hth
> Ted
It's universal in a fuzzy sense. On RH systems, I have a file named 
/etc/dhclient-eth0.conf that contains the
'send host-name "mypc.example.com";' line. This is the inner, or 
low-level configuration file. The outer, or high level configuration 
file is indeed /etc/sysconfig/networking-scripts/ifcfg-eth0, and the 
controlling line looks like

DHCP_HOST=mypc.example.com

and can be set via system-config-network. Of course, your favorite 
editor works too.

JIM




More information about the Novalug mailing list