Solved Hosts file missing - should I worry?

Status
Not open for further replies.

RupertSodwind

New member
Local time
5:07 AM
Messages
27
Hi
I've noticed from the W7 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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Inspiron 620
OS
Windows 7 Home Premium Edition (64-bit) Service Pack 1 (Build 7601)
CPU
Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz
Motherboard
Dell
Memory
8175 MB
Graphics Card(s)
NVIDIA GeForce GT 530
Sound Card
PreSonus Audiobox USB Audio
Monitor(s) Displays
2x; Dell U2312HM DVI | BenQ E2200HD D-SUB
Screen Resolution
1920 x 1080
Hard Drives
C: 931.5GB | F: 931.4GB | H: 931.5GB | I: 931.5GB | J: 465.7GB
PSU
Dell
Case
Dell Standard
Cooling
Dell Standard
Keyboard
Dell Standard
Mouse
Logitech M325
Internet Speed
16Mb/s
Antivirus
Avast
Browser
Chrome, Firefox, Safari, IE
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 Computer

Computer Manufacturer/Model Number
Too many to describe...
OS
Windows 7 x64 pro/ Windows 7 x86 Pro/ XP SP3 x86
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Inspiron 620
OS
Windows 7 Home Premium Edition (64-bit) Service Pack 1 (Build 7601)
CPU
Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz
Motherboard
Dell
Memory
8175 MB
Graphics Card(s)
NVIDIA GeForce GT 530
Sound Card
PreSonus Audiobox USB Audio
Monitor(s) Displays
2x; Dell U2312HM DVI | BenQ E2200HD D-SUB
Screen Resolution
1920 x 1080
Hard Drives
C: 931.5GB | F: 931.4GB | H: 931.5GB | I: 931.5GB | J: 465.7GB
PSU
Dell
Case
Dell Standard
Cooling
Dell Standard
Keyboard
Dell Standard
Mouse
Logitech M325
Internet Speed
16Mb/s
Antivirus
Avast
Browser
Chrome, Firefox, Safari, IE
Status
Not open for further replies.
Back
Top