hostname -- how is it set?

Geoff Rainey geoffr at datacom.co.nz
Fri May 7 23:03:49 UTC 2004


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"

On Sat, 2004-05-08 at 08:08, Robert C Paulsen Jr wrote:
> Hello,
> 
> What configuration file must I edit to change the system's hostname?
> 
> I know I can issue the hostname command, but I want to make whatever
> change is needed so that the change will be effective after subsequent
> reboots.
> 
> I found HOSTNAME in /etc/sysconfig/network, but it is set to
> localhost.localdomain which does NOT match then output from the hostname
> command.
> 
> 
> 





More information about the redhat-list mailing list