Hosts file ignored and replaced with hosts.original


  1. Posts : 8
    Windows 7 x64 | Windows Server 2008 R2 | Windows XP
       #1

    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 Computer


  2. Posts : 4,776
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #2

    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.
    Last edited by Callender; 09 Jan 2014 at 15:21. Reason: Add info
      My Computer


  3. Posts : 5,092
    Windows 7 32 bit
       #3

    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 Computer


  4. Posts : 4,161
    Windows 7 Pro-x64
       #4

    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 Computer


  5. Posts : 8
    Windows 7 x64 | Windows Server 2008 R2 | Windows XP
    Thread Starter
       #5

    Callender said:
    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.


    MilesAhead said:
    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.

    carwiz said:
    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 Computer


  6. Posts : 8
    Windows 7 x64 | Windows Server 2008 R2 | Windows XP
    Thread Starter
       #6

    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 Computer


  7. Posts : 5,092
    Windows 7 32 bit
       #7

    ShadowChaos said:
    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 Computer


  8. Posts : 8
    Windows 7 x64 | Windows Server 2008 R2 | Windows XP
    Thread Starter
       #8

    MilesAhead said:
    ShadowChaos said:
    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 Computer


  9. Posts : 4,161
    Windows 7 Pro-x64
       #9

    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 Attached Thumbnails Hosts file ignored and replaced with hosts.original-ping-blocked-site.jpg  
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 15:35.
Find Us