How to Fix DNS Pollution

This article mainly addresses HTTP hijacking and DNS pollution

What is HTTP hijacking?

HTTP hijacking generally happens when data is being transmitted in the browser and extra content is added to a website’s data, such as ads. Telecom operators like to insert ads this way to increase revenue, but this usually won’t make a website inaccessible. However, sometimes if certain keywords are detected, the local operator will block the TCP connection, and then the website won’t open.

What is DNS pollution?

This is an extremely troublesome issue, and it’s the most aggressive one. DNS pollution generally means directly pointing your domain name to a server with a different IP. To put it plainly, the website you want to visit becomes inaccessible.

How can you tell whether the domain you want to visit has been affected by DNS pollution?

Here’s a demonstration

Here I use ping.china.com       

Use ping to check whether the DNS is pointing correctly

From this image, we can see that our domain name has been pointed to websites such as FACEBOOK and twitter,
which is obviously not the correct destination. All machines in China

Next, let’s look at where an overseas server points

When we test using an overseas device,
we find that the domain points correctly. This is also why we can open the website after using an overseas server to bypass the firewall.

Solutions for DNS domain pollution

If a website you need cannot be opened and the domain has been blocked, and if this website is very important to you, this guide will show you step by step
how to open the website directly.

Step 1: For example   www.freevpnnet.com
This website can’t be opened, but the website itself is still running.

First open ping.chinaz.com   then run a ping test on www.freevpnnet.com
. Just choose overseas here.

Then the overseas server will correctly display the server IP that the website domain points to

As shown above, you can see that the correct server IP for  www.freevpnnet.com is 
104.28.9.67

Now that we have found the correct IP address for the website domain, we’re already halfway done.

Step 2: Manually modify the local host file

Now let’s use window s10 as an example

1 ·. First, locate and switch to
C:WindowsSystem32Driversetc

In this directory, we will find a file called hosts

2.

Then edit this file. Here, write the IP first: 104.28.8.67
This is the correct IP we just found from the overseas servers on ping.chinaz.com,
then add a space and write www.freevpnnet.com
and then save the file. This way you will be able to successfully open www.freevpnnet.com

Answers to possible issues you may encounter

For example:

What should I do if I can’t save changes when editing the hosts file in Win10?

1. First, go to the location of the hosts file in the Win10 system. We can directly enter C:WindowsSystem32Driversetc and press Enter to open it. Right-click the hosts file and select Properties, as shown below

2 Click “Advanced” in the hosts Properties dialog box, as shown below

3 In the Advanced Security Settings interface for hosts, click Change Permissions, as shown below.

4. In the newly opened dialog box, click the Add button, as shown below.

5. In the Permission Entry window for hosts, click “Select a principal” under Principal, as shown below.

6 Click to enter the Select Users or Groups screen, then click Advanced, as shown below.

7 After clicking Advanced, click Find Now, then find the current user account in the search results. Select it and click OK, as shown below. (Generally, the computer user is
administrator.) My computer user here is pkaust8.
You can just select administrator.

8. On the Select Users or Groups screen, click OK, as shown below.

9 In the hosts permission entries screen, check all items under Basic permissions, then click OK, as shown below.

10 After the permissions are added successfully, click OK directly, as shown below.

11 After clicking, the system will prompt you that you are about to change the permission settings of the system folder. This will reduce your computer’s security and may cause problems when users access files. Do you want to continue? Click Yes, as shown below.

Leave a Comment

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

中文 EN
🚀

RedGate VPN

免费节点太挤太慢?
升级高速稳定专线

立即体验 →

告别卡顿

RedGate VPN
全球高速节点

免费下载 →
Scroll to Top