Why is the localhost entry missing in hosts file

localhosttcpipwindows-vista

I have had this problem twice (on two different computers), that the localhost entry is missing from the host file. How could this have happened?

The computer was installed with Windows Vista SP1, and I know Visual Studio 2008, SQL Server 2005 Express ed. and VMWare Player were installed on the computer. Never had probs with the first two before. Can it be the VMWare install?

EDIT: On the computers with this problem, there was an IPV6 entry of

::1 localhost

EDIT2: I just installed VMWare Player on a clean machine, and it didn't touch the hosts file.

Best Answer

I have just checked my Vista Business SP1 laptop and it does indeed have a localhost entry.

I also have vmware installed so seems unlikly culprit.

Have you checked for viruses/malware fiddling with your hosts file?