[CentOS] Changing hostname?

Marcus Moeller mm at gcug.de
Sat Sep 13 09:55:42 UTC 2008

Dear Niki.

>> It should look like this:
>>       localhost.localdomain    localhost   calimero.local
>>  calimero
> I slightly altered it:
> [kikinovak at calimero ~]$ cat /etc/hosts
> # Do not remove the following line, or various programs
> # that require network functionality will fail.
>       calimero.local calimero localhost.localdomain localhost
> [kikinovak at calimero ~]$ hostname
> calimero.local
> [kikinovak at calimero ~]$ hostname --fqdn
> calimero.local
> Wouldn't this be more correct?

This is hard to decide.

>From Slackwares /etc/hosts:
# By the way, Arnt Gulbrandsen <agulbra at nvg.unit.no> says that
# should NEVER be named with the name of the machine.  It causes
problems for some (stupid) programs, irc and reputedly talk.

From: http://lists.debian.org/debian-devel/2005/10/msg00387.html it
should be set to:       localhost        localhost.localdomain       calimero

Best Regards

More information about the CentOS mailing list