RHEL 3 ks.cfg network config

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

 



In RHEL 3 Update 3 (Anaconda 9.1.3-3), I specify:

network --bootproto static --ip 64.102.x.x --netmask 255.255.255.0 --gateway 64.102.x.x --nameserver 64.102.x.x --hostname foo --device eth0

Anaconda puts the short hostname "foo" on the 127.0.0.1 localhost line
in /etc/hosts.

When I specify --hostname foo.cisco.com, anaconda adds a new line
to /etc/hosts with the proper IP address.  I've resorted to always using
FDQN and in %post I strip the domainname out of /etc/sysconfig/network
so `hostname` returns "foo".

Why does Anaconda behave in this manner?  You would think it would
always add the new line to /etc/hosts when static IP is specified.

/Brian/
-- 
       Brian Long                      |         |           |
       IT Data Center Systems          |       .|||.       .|||.
       Cisco Linux Developer           |   ..:|||||||:...:|||||||:..
       Phone: (919) 392-7363           |   C i s c o   S y s t e m s


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux