hostname -- how is it set?
Robert C Paulsen Jr
robert at paulsenonline.net
Sat May 8 01:06:32 UTC 2004
On Fri, 2004-05-07 at 18:03, Geoff Rainey wrote:
> You are correct, change the file:
>
> /etc/sysconfig/network to the hostname of your machine to the following
> configuration:
>
> hostname.domain as for instance -
>
> "HOSTNAME=server1.redhat.com"
>
Thanks - worked like a champ. At first I was expecting the change to
take effect with "/etc/init.d/network restart" but since
sysconfig/network is processed in rc.sysinit it takes effect on reboot.
So, seems like the procedure is
a) use hostname to change the name immediately, and
b) modify /etc/sysconfig/network to make it permanent.
More information about the redhat-list
mailing list