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 ignored and replaced with hosts.original

09 Jan 2014   #1
ShadowChaos

Windows 7 x64 | Windows Server 2008 R2 | Windows XP
 
 
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 the hosts file is properly formed, using tabs and returns. Please advice. I have tried disabling AV and security. The programs that might be interfering: Kaspersky 2013 ,Malwarebyts, comodo firewall... Thank you!


My System SpecsSystem Spec
.
09 Jan 2014   #2
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 
Do you use a HOSTS file editor?

Are you using a HOSTS File Editor? Or just Notepad?

In any case the first thing to do is copy your original HOSTS file and rename it to HOSTS.old then you can mess about with your new HOSTS file.

The HOSTS file only blocks domain names and not ip addresses so if you use an ip address to connect the connection will succeed.

Comodo Firewall won't monitor changes to your hosts file but other security software could have been configured to block changes. You'd need to dig about in the settings.

You need admin rights in Noepad to edit the hosts file.
My System SpecsSystem Spec
09 Jan 2014   #3
MilesAhead

Windows 7 32 bit
 
 

If you think the AV stuff is interfering, turn it off. Edit your hosts file. See if something creates hosts.original again. From what you say the test should only take a few seconds.
My System SpecsSystem Spec
.

09 Jan 2014   #4
carwiz

Windows 7 Pro-x64
 
 

Also when you save the new file with Notepad, be sure to click on "All Files" for the file type otherwise, Notepad will save it as a txt file type which won't be read at boot. You did reboot after making changes, right?
My System SpecsSystem Spec
09 Jan 2014   #5
ShadowChaos

Windows 7 x64 | Windows Server 2008 R2 | Windows XP
 
 

Quote   Quote: Originally Posted by Callender View Post
Are you using a HOSTS File Editor? Or just Notepad?

In any case the first thing to do is copy your original HOSTS file and rename it to HOSTS.old then you can mess about with your new HOSTS file.

The HOSTS file only blocks domain names and not ip addresses so if you use an ip address to connect the connection will succeed.

Comodo Firewall won't monitor changes to your hosts file but other security software could have been configured to block changes. You'd need to dig about in the settings.

You need admin rights in Noepad to edit the hosts file.
Thank you for the response.
Would it be better to use a "hosts file editor"?

I have tried this procedure to no avail.


Quote   Quote: Originally Posted by MilesAhead View Post
If you think the AV stuff is interfering, turn it off. Edit your hosts file. See if something creates hosts.original again. From what you say the test should only take a few seconds.
I tried disabling, and turning off all antivirus. No luck.
I will try uninstalling next.

Quote   Quote: Originally Posted by carwiz View Post
Also when you save the new file with Notepad, be sure to click on "All Files" for the file type otherwise, Notepad will save it as a txt file type which won't be read at boot. You did reboot after making changes, right?
thanks for the response, Done. It didn't work but its good to know.
My System SpecsSystem Spec
14 Jan 2014   #6
ShadowChaos

Windows 7 x64 | Windows Server 2008 R2 | Windows XP
 
 

I got it so the hosts file is no longer being replaced with another file! However the computer still does not use the hosts file as verified by a ping command. I used another laptop similar to mine and was able to use the hosts file successfully.
My System SpecsSystem Spec
15 Jan 2014   #7
MilesAhead

Windows 7 32 bit
 
 

Quote   Quote: Originally Posted by ShadowChaos View Post
I got it so the hosts file is no longer being replaced with another file! However the computer still does not use the hosts file as verified by a ping command. I used another laptop similar to mine and was able to use the hosts file successfully.
Did you try flushing the dns cache and log off/log back on after editing the hosts file?

I've been searching but there seems to be conflicting info. One page claimed MS was bypassing the hosts file for its sites etc.. Strange.
My System SpecsSystem Spec
21 Jan 2014   #8
ShadowChaos

Windows 7 x64 | Windows Server 2008 R2 | Windows XP
 
 

Quote   Quote: Originally Posted by MilesAhead View Post
Quote   Quote: Originally Posted by ShadowChaos View Post
I got it so the hosts file is no longer being replaced with another file! However the computer still does not use the hosts file as verified by a ping command. I used another laptop similar to mine and was able to use the hosts file successfully.
Did you try flushing the dns cache and log off/log back on after editing the hosts file?

I've been searching but there seems to be conflicting info. One page claimed MS was bypassing the hosts file for its sites etc.. Strange.
Interesting, I wonder if that is what is happening. As for dns, yes I tried flushing the cache.
My System SpecsSystem Spec
21 Jan 2014   #9
carwiz

Windows 7 Pro-x64
 
 

Post a snip of your host file with the area in question and the Windows Explorer screen showing folder ETC. Host file will block pings; I just tried it. You probably mistyped something.


Attached Thumbnails
Hosts file ignored and replaced with hosts.original-ping-blocked-site.jpg  
My System SpecsSystem Spec
Reply

 Hosts file ignored and replaced with hosts.original




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Hosts File
Hey, I was wondering, is there any internet performance gain if you put a commonly used website's IP (like Google) in your Hosts file, so it doesn't need to ask a DNS server? I mean, because I have 30 websites I go on at least 10 times each day, and it lags when I open all of them :D Thanks!
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
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 04:05.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App