Re: Changing hostname?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello,

you can do it  from here.
go through                 System >> Network >> Hosts

edit host name from here.

all things you have done till now are correct.
 

On Sat, Sep 13, 2008 at 11:36 AM, Niki Kovacs <contact@xxxxxxxxxxxxx> wrote:
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@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
::1     localhost6.localdomain6 localhost6

Please correct me if I'm wrong.

cheers,

Niki Kovacs
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



--
Thanks and Regards,
Kapil Singh Kushwah
Linux System/Network Administrator
Hotwax Media Inc.
Indore,(M.P) INDIA

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux