Re: /etc/hosts - hostname alias for 127.0.0.1

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



On Mon, Mar 07, 2011 at 09:31:17PM +0100, Kai Schaetzl wrote:
> 
> Usually, it's rather an advantage because 
> in cases where you would just get "localhost" you now get some meaningful 
> name.

You can use the bare hostname as an alias in /etc/hosts, which is
probably marginally better than using the FQDN.

In CentOS, I believe that rc.sysinit will try to set the hostname from
its FQDN (or whatever you have set in /etc/sysconfig/network) without
mucking about with /etc/hosts.

--keith


-- 
kkeller@xxxxxxxxxxxxxxxxxxxxxxxxxx

Attachment: pgpEyBpCBsOcW.pgp
Description: PGP signature

_______________________________________________
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