[CentOS] /etc/hosts - hostname alias for

Mon Mar 7 20:01:13 UTC 2011
Keith Keller <kkeller at wombat.san-francisco.ca.us>

On Mon, Mar 07, 2011 at 10:34:24AM -0600, Sean Carolan wrote:
> Can anyone point out reasons why it might be a bad idea to put this
> sort of line in your /etc/hosts file, eg, pointing the FQDN at the
> loopback address?
>    hostname.domain.com hostname   localhost localhost.localdomain

Would the application work with a hosts entry like this?    hostname.dummy   localhost localhost.localdomain

(Make sure you pick .dummy so as not to interfere with any other DNS.)

In theory you could leave off .dummy, but then you risk hostname being
completed with the search domain in resolv.conf, which creates the
problems already mentioned with putting hostname.domain.com in
/etc/hosts.  (I have not tested this at all!)


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/5c254bcf/attachment-0005.sig>