[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

hostname with dhcp-client



Anyone know how to set the hostname under dhcp?  I have
    dhcp-client [2.0pl4-2]
    debian 2.2 - potato [patched to date]
    kernel [2.2.19]
I establish a lease with dhclient with the following config file, i.e.,
[/etc/dhclient.conf]
----------------
send host-name "peregrine.cox-internet.com";
lease {
  interface "eth0";
  option host-name "peregrine.cox-internet.com";
}
----------------

I have used several combinations in the above config file including
setting the hostname and domain names separately.

I don't find an error message from dhclient; however, the hostname
assigned by DNS, i.e., from nslookup on the ip address, is not
`peregrine' but some combination of letter, numbers and dashes.

I found several messages in the Debian Mailing List Archives that
may be useful but it appears there is a problem with the database.  I
get the following message when I attempt to read one of the messages:

"The requested URL
/www/debian-user/2001/debian-user-200107/msg02249.html was not found
on this server."


-- 
    Carl Greco
    cgreco@ieee.org



Reply to: