Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Hosts file missing - should I worry?

12 Dec 2010   #1

Windows 7 Home Premium 32 Bit
 
 
Hosts file missing - should I worry?

Hi
I've noticed from the Windows 7 32bit Event viewer numerous errors of the type:Event 1012, DNS Client Events. There was an error while attempting to read the local hosts file.
I have checked the normal location of the Hosts file and it's missing - there are only 4 files there: Imhosts.sam, networks, protocol and services.
I've Googled and found no solution that works, I've run SFC /SCANNOW and it although it found and repaired some corrupt files it hasn't cured the Hosts file issue.
My question is: Should I worry since the PC seems to be running OK?

My System SpecsSystem Spec
.

12 Dec 2010   #2

Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
 
 

The hosts file doesn't disappear on its own. That file should be unaffected unless you modify it or you have a security program that modifies it to prevent you from going to malicious web sites. So, as a precaution, do a full malware scan with the resident AV as well as MBAM.

Then you can just recreate the hosts file. Open Notepad as admin (right click on notepad icon or shortcut and click Run as admin) and type the following information in it:

127.0.0.1 localhost
::1 localhost

The "1" in the "127.0.0.1" must be at the first column of the line and there must be at least one space between "127.0.0.1" and "localhost". In the second line, there must be at least one space between "::1" and "localhost".


Save the file with the name "hosts" in C:\windows\system32\drivers\etc folder.
My System SpecsSystem Spec
12 Dec 2010   #3

Windows 7 Home Premium 32 Bit
 
 

Thanks Bill2.
I've done all you suggested and hosts now remains in it's proper home after reboot.
What deleted it is a mystery but I'll keep an eye on it for a while.
My System SpecsSystem Spec
.


Closed Thread

 Hosts file missing - should I worry?




Thread Tools



Similar help and support threads for2: Hosts file missing - should I worry?
Thread Forum
Hosts File General Discussion
Do not have access to hosts file Browsers & Mail
Solved Hosts file-S?? System Security
HOSTS File - Create a "Edit HOSTS file" Shortcut Tutorials
HOSTS file Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:00 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33