How to check and prevent DNS leaks
This page helps you check whether your VPN or proxy is leaking information that can reveal who you are, and how to fix it. It covers two common leaks: DNS leaks and WebRTC leaks. You can do every test from your phone or computer; no server access is needed for the tests.
What is a DNS leak?
DNS (Domain Name System) is the "phone book" of the Internet: it turns a name such as google.com into the IP address of the server behind it. Every time you open a site, your device first sends a DNS request.
- Without a VPN, these requests go to your Internet provider (ISP).
- With a VPN or proxy, these requests should go through the VPN to the VPN's DNS server.
A DNS leak happens when DNS requests skip the VPN and still go to your ISP. Your ISP (and anyone watching your connection) can then see which sites you visit, even though the rest of your traffic is hidden.
Symptom: a DNS leak test (below) shows DNS servers from your own country or your own ISP while you are connected to the VPN.
How to test for a DNS leak
Connect to your VPN or proxy first, then open one or more of the sites below. Use more than one site, because each site tests a little differently.
1. dnsleaktest.com
- Open dnsleaktest.com. The first page shows your current IP address.
-
Tap Extended test. (The Standard test checks fewer servers; the extended test is more thorough.)

-
Wait for the test to finish and look at the list of servers:
- No leak: every server belongs to your VPN server's provider or is in your VPN server's country. All your DNS traffic went through the VPN.
- Leak: one or more servers belong to your own ISP or show your real country.
In the picture below, all servers match the VPN server's provider and location, so there is no leak.

2. browserleaks.com
Open the DNS Leak Test page on browserleaks.com. The test starts by itself and shows the results when it finishes. Read the results the same way as above.

3. ipleak.net
Open ipleak.net. The test starts by itself. In the picture below, the DNS server matches the VPN server's provider and location, so there is no leak.

4. dnsleaktest.org
Open the DNS Leak Test page on dnsleaktest.org. The test starts by itself.

In the picture below, the list contains servers that do not belong to the VPN server and show the user's real location. This means there is a DNS leak.

How to fix a DNS leak
Likely causes: the client app sends DNS requests outside the tunnel, the device's own DNS settings override the VPN, or IPv6 traffic goes around the VPN.
Try these fixes in order, and run a leak test again after each one.
1. Check the DNS settings in your client app
In the Hiddify app (v4):
- Open Settings and go to the DNS section.
- Make sure Remote DNS is set to a trusted public DNS server, for example Cloudflare (
1.1.1.1) or Google (8.8.8.8). Remote DNS is the DNS server used for requests that go through the proxy. - Reconnect and run a leak test again.
In other apps, look for a similar DNS setting and set it to a trusted public DNS server.
2. Disable IPv6 if you don't use it
IPv6 is the newer kind of IP address. If your VPN only carries IPv4 traffic, IPv6 requests can go around it. If you don't need IPv6, turn it off in your device's network settings. In the Hiddify app, you can also change the IPv6 route option in Settings > Routing.
On the server side, see How to disable IP version 6 on HiddifyManager.
3. Set a trusted DNS server on your Hiddify server
Your server also needs a working, trusted DNS server. In HiddifyManager you can set it in the panel. See How to set DNS server on HiddifyManager for the steps and for how to test DNS on the server.
4. Use an encrypted DNS app
On a computer, you can use tools such as DNSCrypt or Simple DNS Crypt. They send your DNS requests to secure servers over an encrypted connection, so your ISP cannot read them.
What is WebRTC?
WebRTC (Web Real-Time Communication) is a browser feature for live voice, video and data, for example video calls in a web page. It works without plugins and is built into most browsers.
What is a WebRTC leak?
To set up calls, WebRTC can ask your device for its IP addresses. In some cases a website can use this to find your real IP address, even when you use a VPN. This is a weakness in browsers such as Chrome, Firefox and Edge.
Symptom: a WebRTC test (below) shows your real IP address while you are connected to the VPN.
How to test for a WebRTC leak
- Connect to your VPN or proxy.
- Open the WebRTC Leak Test page on browserleaks.com. The test runs by itself.
- Compare the IP addresses on the page with your real IP. If your real IP appears, you have a leak.
In the picture below, the real IP address is visible even though a VPN is in use, so there is a leak.

How to fix a WebRTC leak
Fix it in each browser you use, then run the test again.
Firefox
- Type
about:configin the address bar and press Enter. - Tap Accept the Risk and Continue.
- In the search box, type
media.peerconnection.enabled. - Double-click the setting so its value changes from
truetofalse.
Chrome and Edge
- Install the WebRTC Leak Prevent extension.
- Open the extension's options.
- Set IP handling policy to Disable non-proxied UDP.
Safari
- Open Preferences and go to the Advanced tab.
- Turn on Show Develop menu in menu bar.
- In the menu bar, open Develop and choose Experimental Features.
- Find Remove Legacy WebRTC API and click it to turn WebRTC off.
Menu names can differ between Safari versions.