[CentOS] Changing hostname?
admin
mick at mjhall.org
Sat Sep 13 10:07:55 UTC 2008
It's worth checking that /etc/sysconfig/network also has whatever
hostname you wish to use configured in it.
To effect changes, it may be necessary to restart the network:
service network restart
Mick
Niki Kovacs wrote:
> 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?
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
More information about the CentOS
mailing list