Viruses from around the world target the system wide files at the first place. You need to remove the virus before restoring your registry files, log files and host file. Removal followed by the restoration of these said files in the original manuscript would help you restore your computer to the normal state.

There are two ways to reset the host file.

The automatic version:

You can find a link to an application on the Microsoft’s website that would help you do the job automatically. You only need to run the application and it would give you with a simple wizard that can restore your host file to the original state washing away all the effects that the virus might have rendered on your computer. This one is certainly an easy task but you always have an alternative when it comes to the world of computers.

The manual version:

The hosts file in the Windows XP, Windows Vista and Windows 7 have been made in a way that it only sets the loopback address of your computer or the localhost address of your computer. The whole hosts file is just made in a way that the whole of the host file is forms of comments and just the last line of the hosts file can be altered in order to make the changes. Only the localhost address with the loopback IP address is not commented. Any other parameter with the hosts address is specified in the hosts file.

  • Setting the hosts file back to default is not an issue actually. You just need to follow the instructions below to do this:
  • Go to the Windows Explorer and then to the drive where you have installed your operating system.
  • Go to the root folder of your operating system that would be Windows for most of the time.
  • Locate system32 folder in the Windows folder and then drivers. Under the drivers folder, locate and go to the etc directory. In case you are using a 64 bit version of Windows then you need to locate SysWOW64 folder of the system32 folder.
  • Locate the hosts file and rename that to hosts.bak.
  • Create a new file with the name of hosts in the etc folder. You can do so by right-clicking the open space in the window and under the new menu, click text document. Type the name that will be hosts and press ENTER. You would be prompted for an extension, click yes so that it does not set the extension at txt.
  • Open the hosts file in a text editor preferably Notepad that comes in package with Windows.
  • Different Windows Version has the hosts file made in their distinct ways. The manuscript needs a few changes only. You need to make sure that the following details are added to the hosts file.