TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:6618] hostname??



Hello "Hairie" <hairie7@tm.net.my>:

> Do you all guys here know how I would like to change the HOSTNAME
> to any names I like.  in my .bash_profile know I've set
> HOSTNAME=`hostname` but the system only read my hostname as
> "localhost.localdomain". If I'm setting my hostname using this
> command "hostname Linux" it just appear at that time only but if
> I'm reboot the system it will recognized my system as
> localhost.localdomain after that?? Do you guys have any idea about
> this??

On RedHat systems, this is configured in file "/etc/sysconfig/network".
Change the line that says 'HOSTNAME=localhost.localdomain' to the name
you want.

Regards,
John