[CentOS] Changing hostname?
Marcus Moeller
mm at gcug.de
Sat Sep 13 09:55:42 UTC 2008
Dear Niki.
>> It should look like this:
>>
>> 127.0.0.1 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.
> 127.0.0.1 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 127.0.0.1
# 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:
127.0.0.1 localhost localhost.localdomain calimero
calimero.local
Best Regards
Marcus
More information about the CentOS
mailing list