-   Linux - Networking (
-   -   Strange loopback entries in /etc/hosts (

Passions 04-13-2007 08:23 PM

Strange loopback entries in /etc/hosts

The way how I understand loopback entries in /etc/hosts should be the format: localhost.localdomain localhost

But on some of my computers I will see: localhost.localdomain <hostname> localhost

or even... <hostname> localhost.localdomain localhost

Does anyone know why this is happening? :confused: Should I keep the hostname in there or remove it??


macemoneta 04-13-2007 08:37 PM

From 'man hosts':


For each host a single line should be present with
the following information:

IP_address canonical_hostname [aliases...]

Fields of the entry are separated by any number of blanks and/or tab
In other words, multiple aliases are permitted.

All times are GMT -5. The time now is 02:12 AM.