[CentOS] /etc/hosts missing localhost?

Jim Perrin jperrin at gmail.com
Tue Jul 22 01:39:06 UTC 2008


On Mon, Jul 21, 2008 at 9:20 PM, Bill Campbell <centos at celestial.com> wrote:
> Is there any reason why /etc/hosts would be missing the line,
> 127.0.0.1 localhost?

Nope. It's there by default in some form or another.

By default, it usually looks like this ->

127.0.0.1       installname  localhost.localdomain  localhost
::1          localhost6.localdomain6   localhost6




If you don't have anything like this in your /etc/hosts, you either
need to find a mirror and begin yelling at responsible parties, or
stalk whomever else has root on this particular machine.

-- 
During times of universal deceit, telling the truth becomes a revolutionary act.
George Orwell



More information about the CentOS mailing list