[CentOS] Re: Changing hostname?

Mon Sep 15 16:13:21 UTC 2008
Scott Silva <ssilva at sgvwater.com>

on 9-12-2008 11:06 PM Niki Kovacs spake the following:
> Hi,
> 
> I recently made a CentOS install on a machine with an unsupported 
> network card. I had to add the driver for it later, once I finished the 
> install. For now I have this:
> 
> [kikinovak at localhost ~]$ hostname --fqdn
> localhost.localdomain
> 
> Q: how would I change this to something like calimero.local?
> 
> Here's what I *would* do, but I prefer to ask before.
> 
> 1) edit /etc/sysconfig/network and edit this line:
> 
> HOSTNAME=calimero.local
> 
> 2) add a line to /etc/hosts like this:
> 
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
> 127.0.0.1       localhost.localdomain   localhost
> 127.0.0.1    calimero.local        calimero
This should be the ip address of your local adapter, not 127.0.0.1

> ::1     localhost6.localdomain6 localhost6
> 
> Please correct me if I'm wrong.
> 
> cheers,
> 
> Niki Kovacs
Everything else seems OK.

-- 
MailScanner is like deodorant...
You hope everybody uses it, and
you notice quickly if they don't!!!!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20080915/14e0edda/attachment-0005.sig>