Re: DHCP configuration question

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

 



Philip A. Prindeville wrote:
Ok, dumb question, but given that my
/var/lib/dhclient/dhclient-eth0.lease info shows that I'm clearly
getting a hostname and domain name, why does "hostname" return
localhost.localdomain (and "domainname" returns "(none)")?

What do I need to enable to make this work?

Hostname will continue to return localhost.localdomain since, at the
time the hostname command was used in /etc/rc.d/rc.sysinit, that's
what's in the /etc/sysconfig/network file on DHCP clients.

You'd need to change the dhclient script to extract the given host name
from the leases file and do a "hostname extracted-data" to change it.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer                      ricks@xxxxxxxx -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-    They say when you play a Microsoft CD backwards, you'll hear    -
-   Satanic messages, but if you play it forwards, it will install   -
-           Windows...which means Satan is in your system.           -
----------------------------------------------------------------------

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux