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: Why is my hosts file missing?

14 Oct 2013   #1
cesc

Windows 7 Ultimate sp1 32 bit.
 
 
Why is my hosts file missing?

Hi there,

My hosts file on c:\Windows\System32\drivers\etc\ is missing. It doesn't exist anymore.

I have tried to put it back in place by using a Microsoft Fix found here How can I reset the Hosts file back to the default?

But as soon as the hosts file is back it is deleted again and again.

What's happening here? I've an updated antivirus and I've run Malwarebytes Antimalware to see if there was malware in my pc. But there's none.

How can I find out the culprit that is erasing the hosts file?

Thanks for your help.


My System SpecsSystem Spec
.
14 Oct 2013   #2
Jacee
Microsoft MVP

Windows 7 Ultimate 32bit SP1
 
 

Download the HostsXpert 4.4 - Hosts File Manager.
  • Unzip HostsXpert 4.3 - Hosts File Manager to a convenient folder such as C:\HostsXpert
  • Click HostsXpert.exe to Run HostsXpert 4.4 - Hosts File Manager from its new home
  • Click "Make Hosts Writable?" in the upper right corner (If available).
  • Click Restore Microsoft's Hosts file and then click OK.
  • Click the X to exit the program.
  • Note: If you were using a custom Hosts file you will need to replace any of those entries yourself.
http://www.funkytoad.com/index.php?o...d=13&Itemid=31
My System SpecsSystem Spec
14 Oct 2013   #3
cesc

Windows 7 Ultimate sp1 32 bit.
 
 

Quote   Quote: Originally Posted by Jacee View Post
Download the HostsXpert 4.4 - Hosts File Manager.
  • Unzip HostsXpert 4.3 - Hosts File Manager to a convenient folder such as C:\HostsXpert
  • Click HostsXpert.exe to Run HostsXpert 4.4 - Hosts File Manager from its new home
  • Click "Make Hosts Writable?" in the upper right corner (If available).
  • Click Restore Microsoft's Hosts file and then click OK.
  • Click the X to exit the program.
  • Note: If you were using a custom Hosts file you will need to replace any of those entries yourself.
HostsXpert v4.4

Thanks Jacee, so far so good. I've restarted my computer and the hosts file is still there. By the way, now HOSTS is in capital letters. I suppose it doesn't matter in capital letters or lowercase. I will keep an eye on it in a couple of days to see if still there.

Again, thanks for your help. Very kind of you.
My System SpecsSystem Spec
.

14 Oct 2013   #4
Jacee
Microsoft MVP

Windows 7 Ultimate 32bit SP1
 
 

Should be fine

This is a sample look:
Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
My System SpecsSystem Spec
Reply

 Why is my hosts file missing?




Thread Tools




Similar help and support threads
Thread Forum
Hosts file ignored and replaced with hosts.original
Hello. I am trying to use the hosts file. However both pings and web addresses still bypass the hosts file. I noticed that there is another file in the C:\Windows\System32\drivers\etc directory called 'hosts.original'. When ever I delete this file, it reappears seconds later. I have made sure that...
General Discussion
Hosts file-S??
can the hosts file be changed to, or amended by, another file? IOW can there be a file named xyz that essentially replaces the hosts file, or adds entries to it? Possibly by a registry key or configuration setting? Of course it could by altering library fxns, but by other "simpler" means? ...
System Security
HOSTS File - Create a "Edit HOSTS file" Shortcut
How to Create a "Edit HOSTS file" Shortcut in Windows 7 and Vista The HOSTS file is a .txt file used in Vista and Windows 7 to map hostnames to IP addresses. Your computer checks this file first to resolve any network names to its corresponding IP address before it tries to check the Internet....
Tutorials
Hosts file missing - should I worry?
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,...
System Security
HOSTS file
I setup a hosts file in windows xp in order to use my website locally using the exact domain name by editing the hosts file by adding the line: 127.0.0.1 www.test.com This should resolve my local ip address for the test.com site and if apache is running, then it should load the website...
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 00:25.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App