[CentOS] Changing Host Name

Thu Jul 7 02:08:23 UTC 2011
Andrew Harley <andrew.harley at mdi.net.au>

On Thu, 7 Jul 2011 12:06:31 PM John J. Boyer wrote:
> Thanks to all of you who are answering my dumb questions about my new
> CentOS instgallation.
> 
> I modified /etc/hosts, as the hostname man page seemed to suggest, and
> rebooted. The hostname is still localhost. I want to change it to
> jjb-centos. I also want to change the domain name to abilitiessoft.com
> 
> Thanks,
> John

Hi John,

Hostname will need to be changed under /etc/sysconfig/network to be retained 
upon startup. The hostname command should change the hostname immediately 
iirc.

Cheers,

Andy