Hosts file ignored and replaced with hosts.original

ShadowChaos

New member
Local time
12:08 PM
Messages
8
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 My Computer

At a glance

Windows 7 x64 | Windows Server 2008 R2 | Wind...
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custome Builds...All of them!
OS
Windows 7 x64 | Windows Server 2008 R2 | Windows XP
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:

My Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bit 7601 ...AMD C-60 APU with Radeon(tm) HD Graphics4.00 GBAMD Radeon HD 6290 Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
ASUS
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
AMD C-60 APU with Radeon(tm) HD Graphics
Motherboard
ASUSTeK COMPUTER INC. X501U
Memory
4.00 GB
Graphics Card(s)
AMD Radeon HD 6290 Graphics
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
Hitachi HTS545050A7E380 SATA Disk Device
Antivirus
Comodo CIS & FW, SecureAplus App Whitelisting, Threatfire
Browser
Cyberfox 64bit, Opera 64bit, Airfox
Other Info
Spy-The-Spy, HitmanPro.Alert, Norton Connect Safe, MJRegWatcher, BitDefender TrafficLight, Voodoo Shield, Zemana AntiMalware
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 My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
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 My Computer

At a glance

Windows 7 Pro-x64i7-2600 3.4GHz - 3.8GHz Turbo8Gb - 2x4GB, Muskin 991770 PC3-1333Integrated Intel HD 2000
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built 2/11/2011
OS
Windows 7 Pro-x64
CPU
i7-2600 3.4GHz - 3.8GHz Turbo
Motherboard
Intel DH67BL-B3
Memory
8Gb - 2x4GB, Muskin 991770 PC3-1333
Graphics Card(s)
Integrated Intel HD 2000
Sound Card
Integrated Intel 10.1 HD, RealTek ALC892
Monitor(s) Displays
Asus LCD VH222H, Haier HL24XSL2a
Screen Resolution
1920x1080, 1920x1080
Hard Drives
Crucial SSD C300-128Gb,
Western Digital WD5002AALX - 500Gb,
Western Digital WD7501AALS - 750Gb
PSU
Seasonic 650W 80+ Gold Modular
Case
Rosewill Defender
Cooling
Stock CPU, Four 120mm case fans, PCH fan added
Keyboard
Logitech EX100 Y-RBH94 Wireless
Mouse
Logitech EX100 M-RCE95 Wireless
Internet Speed
3.0/1.5 Mbs
Antivirus
Microsoft Security Essentials
Browser
Microsoft Internet Explorer 11
Other Info
Antec Veris Premier-Multimedia IR Station,
Cyber Accoustics-3602 Speakers,
AFT XM-5U Card Reader,
Hauppauge TV-HVR-2250,
Sony LX300 USB Turntable
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.


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.

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 My Computer

At a glance

Windows 7 x64 | Windows Server 2008 R2 | Wind...
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custome Builds...All of them!
OS
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 Computer My Computer

At a glance

Windows 7 x64 | Windows Server 2008 R2 | Wind...
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custome Builds...All of them!
OS
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.

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 My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
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 My Computer

At a glance

Windows 7 x64 | Windows Server 2008 R2 | Wind...
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custome Builds...All of them!
OS
Windows 7 x64 | Windows Server 2008 R2 | Windows XP
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.
 

Attachments

  • Ping Blocked Site.JPG
    Ping Blocked Site.JPG
    64.8 KB · Views: 4

My Computer My Computer

At a glance

Windows 7 Pro-x64i7-2600 3.4GHz - 3.8GHz Turbo8Gb - 2x4GB, Muskin 991770 PC3-1333Integrated Intel HD 2000
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Built 2/11/2011
OS
Windows 7 Pro-x64
CPU
i7-2600 3.4GHz - 3.8GHz Turbo
Motherboard
Intel DH67BL-B3
Memory
8Gb - 2x4GB, Muskin 991770 PC3-1333
Graphics Card(s)
Integrated Intel HD 2000
Sound Card
Integrated Intel 10.1 HD, RealTek ALC892
Monitor(s) Displays
Asus LCD VH222H, Haier HL24XSL2a
Screen Resolution
1920x1080, 1920x1080
Hard Drives
Crucial SSD C300-128Gb,
Western Digital WD5002AALX - 500Gb,
Western Digital WD7501AALS - 750Gb
PSU
Seasonic 650W 80+ Gold Modular
Case
Rosewill Defender
Cooling
Stock CPU, Four 120mm case fans, PCH fan added
Keyboard
Logitech EX100 Y-RBH94 Wireless
Mouse
Logitech EX100 M-RCE95 Wireless
Internet Speed
3.0/1.5 Mbs
Antivirus
Microsoft Security Essentials
Browser
Microsoft Internet Explorer 11
Other Info
Antec Veris Premier-Multimedia IR Station,
Cyber Accoustics-3602 Speakers,
AFT XM-5U Card Reader,
Hauppauge TV-HVR-2250,
Sony LX300 USB Turntable
Back
Top