How to Fix DNS Leak on Windows While Using Any VPN

How to Fix DNS Leak on Windows While Using Any VPN

One of the common issues when using a VPN is DNS leakage. This means that despite being connected to a VPN, domain requests (such as opening websites) are still sent through local Iranian DNS servers, which compromises your privacy and exposes your real location. In this guide, we’ll show you how to fix this problem when using any type of VPN on Windows.

🔧 Steps to Fix DNS Leakage

  1. First, disconnect your VPN connection.
  2. Open the Start menu and go to:
    Control Panel → Network and Sharing Center 
  3. From the list of network connections, find the one related to your Internet connection.
    It is usually named Wi-Fi.


  4. Right-click on it and select Properties.


  5. From the list, select Internet Protocol Version 4 (TCP/IPv4) and click Properties.


  6. In the window that opens, enable Use the following DNS server addresses and enter the following values:
    • Preferred DNS server: 1.1.1.1
    • Alternate DNS server: 8.8.8.8


  7. Click OK and close all windows. (If you also have a VPN adaptor, make sure to change its DNS settings too.)
  8. Reconnect your VPN.
  9. Completely close and reopen your browser.
  10. To check if the leak has been fixed, visit one of the following websites:

✅ What Should You See?
After completing these steps, only addresses like 1.1.1.1 or 8.8.8.8 should appear under DNS Servers. If you still see addresses from your country, please review the steps carefully and try again.

📌 Final Tip

Using secure, international DNS servers such as Cloudflare (1.1.1.1) or Google DNS (8.8.8.8) not only improves your privacy, but typically offers faster performance compared to local DNS servers. Make sure to include this change as a regular part of your VPN setup.




  • Name, email, and message are required (Your email address will not be published)
seven minus three