How to prevent DNS leak on Windows 8 and 10?

First please test whether you have this issue: https://www.dnsleaktest.com

The worst case scenario if your DNS is leaked is that your ISP will see your activity. Depending on your location it might not matter at all. However, if you are in the US, Germany or a country that has more strict laws regarding internet activity, DNS leak is something you might want to avoid.

Solution 1

To fix this problem instead of using DHCP settings try to use static DNS server or public DNS services

To change DNS settings open Control panel and go to Network and Sharing Center. Navigate to Change Adapter Settings on the left-hand panel and locate your network and Right click on the network icon. Select Properties from the drop-down menu.

Locate and search Internet Protocol Version 4 in the window and then click on it and then go to Properties.

Click on the radio button Use the following DNS server addresses.

Enter the Preferred and Alternate address for DNS servers you wish to use.

If you want to use Google Open DNS server, follow these steps

Locate preferred DNS server and type 8.8.8.8
Locate alternate DNS server and type 8.8.4.4.

Click on OK to save the changes.


Solution 2 (Disable Smart Multi-Homed Name Resolution.)

Windows 8 and 8.1

Create a file and name it dns.reg. Then place the following command in the file:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DNSClient]
"DisableSmartNameResolution"=dword:00000001

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters]
"DisableParallelAandAAAA "=dword:00000001


Windows 10

Press WIN+R and write gpedit.msc
Expand Administrative templates
Expand Network
Click DNS-client
Double-click "Turn off smart multi-homed name resolution"
Check the box called "Enabled"
Click "Apply all" and then "OK"
Finally, reboot your PC and you are done!


Solution 3

For Windows 10, the easy fix it to add a DWORD name of DisableSmartNameResolution with a value of 0 under the following path.

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DNSClient

  • DNS Leak, VPN
  • 0 Bu dökümanı faydalı bulan kullanıcılar:
Bu cevap yeterince yardımcı oldu mu?

Related Articles

How to install OpenVPN on Android?

1) Download OpenVPN for Android either from the Google Play Store or directly as an Android...

How to install OpenVPN on iOS?

1) Download and install the OpenVPN Connect client from the App Store. 2) Download the OpenVPN...

How to install OpenVPN on Linux?

1) You will be sent a download link via E-mail to get the OpenVPN Profile. (The .OVPN file...

How to install OpenVPN on MacOS?

1) You will be sent a download link via E-mail to get the OpenVPN Profile. (The .OVPN file...

How to install OpenVPN on Windows?

1) Download the OpenVPN Profile sent to you via E-mail. (This .OVPN file contains the Server...