[CentOS] Changing hostname?

Niki Kovacs contact at kikinovak.net
Sat Sep 13 09:37:24 UTC 2008


Marcus Moeller a écrit :
> 
> 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?


More information about the CentOS mailing list