Re: Changing hostname?

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



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@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@calimero ~]$ hostname
calimero.local
[kikinovak@calimero ~]$ hostname --fqdn
calimero.local

Wouldn't this be more correct?
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
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