DotFab Blog » Malware Removal & Prevention Tips»How to Check Hosts Files, DNS and Proxy Settings for Normal Internet Access after Malware Infection

How to Check Hosts Files, DNS and Proxy Settings for Normal Internet Access after Malware Infection

Many malware tend to modify internet settings including hosts, DNS and proxy settings so as to disable normal Internet access and avoid being detected or removed. Hence frequently Internet troubleshooting is required in the first place when we are trying to detect and remove the malware infections. And this article will detail how.
 
 
How to get normal Internet access after malware infections? Read below.
 
In majority of cases , malware infections will change the infected computer’s hosts files, DNS settings, Proxy settings so as to protect themselves and fulfill their tricks. Below detailed instructions to repair hosts files, DNS settings and Proxy Settings separately. You can just follow some of them or all, that’s would be better, as instructed depending on the specific situation.
 
 

1. Check hosts files and Repair

 

Below information to check hosts files in Windows xp/vista/7/8 are from the official website of Microsoft.
 
You can choose to fix the hosts files automatically use Microsoft ‘s wizard as instructed below:
 

To reset the Hosts file back to the default automatically, click the Fix it link, click Run in the File Download dialog box, and then follow the steps in the Fix it wizard.

Fix it
Microsoft Fix it 50267

  • Note this wizard may be in English only. However, the automatic fix also works for other language versions of Windows.
  •  

  • Note If you are not on the computer that has the problem, you can save the automatic fix to a flash drive or to a CD and then run the automatic fix on the computer that has the problem.

 

—Or—

You can manually fix it by yourself by following below guide:
 

To repair the hosts files in Windows manually, please follow below instructions:

Click Start, click Run, type %systemroot% \system32\drivers\etc, and then click OK.

Rename the Hosts file to Hosts.old.

Create a new default hosts file. To do this, follow these steps:

Right-click an open space in the %WinDir%\System32\Drivers\Etc folder, point to New, click Text Document, type hosts, and then press Enter.

Click Yes to confirm that the file name extension will not be .txt.

Open the new Hosts file in a text editor. For example, open the file in Notepad.

Copy the following text to the file:

For Windows XP or for Windows Server 2003

# Copyright (c) 1993-1999 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

127.0.0.1 localhost

For Windows Vista or for Windows Server 2008

# Copyright (c) 1993-2006 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

127.0.0.1 localhost
::1 localhost

For Windows 7

# Copyright (c) 1993-2006 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 handle within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

Save and then close the file.

 

2. Check Proxy Settings (LAN settings) and Repair

 

Open your Internet Explorer, click Settings icon or Tools (as per the IE version), click the Internet Options in the dropped-down menu and then there comes up the window of Internet Options. Under the Connections tab, click LAN settings to open the LAN settings menu, ensure to uncheck the use a proxy server as your LAN. as shown in below picture. And then click OK to save the changes and close the winodw.
 

Proxy settings repair

 That’s it.
 

3. Check DNS Settings and Repair

 

Click on the Network icon, generally located on bottom left center of your desktop. Then click on Open Network and Share Center.

Network

 

Then click Local Area Connection

Local Area Network

 
Click Properties button on the opened window to open Local Area Connection properities

Properties

 

On the Local Area Connection Properties window, locate under Networking tab and highlight Internet Protocol Version 4(TCP/Ipv4). Then click Properties.

ICP4 properties

 

 

On the opened window, select Obtain an IP address automatically and Obtain DNS server address automatically.

DNS settings repair
 
That’s it.
 
 

Leave a Reply

Your email address will not be published. Required fields are marked *