[CentOS] /etc/hosts - hostname alias for 127.0.0.1

Mon Mar 7 23:28:55 UTC 2011
Keith Keller <kkeller at wombat.san-francisco.ca.us>

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 at wombat.san-francisco.ca.us

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20110307/72cf41ad/attachment-0005.sig>