Tools
What is a DNS leak and how to test a VPN for it
A DNS leak occurs when DNS requests bypass the VPN tunnel — for example, when they go to the ISP's DNS servers. The test begins with comparing results without a VPN and with one. The DNS resolver address shown in a leak test should not be taken for the user's real IP address.
From VPN Security, Protocols & Post-Quantum — Last reviewed
Understanding where DNS requests go
DNS translates a domain name into an IP address. The recipient of DNS queries sees the domain name; the full URL of the page and HTTPS content are not part of that request. That is why a DNS leak requires attention even when the IP is hidden.
Proton VPN describes its implementation as follows: device → VPN tunnel → Proton's own DNS server. The unwanted route in the event of a leak: device → ISP's DNS server outside the tunnel. Ownership of a resolver does not by itself determine the route.
Testing DNS and reading the result
Comparitech proposes comparing two runs:
- Run the test without a VPN and note the addresses and locations from the results.
- Switch on the VPN and repeat the test.
- Compare the lists and match them against your VPN provider's documentation.
DNSLeakTest is suitable for the check. A model example: without a VPN, the provider's DNS is displayed; after connecting, the result is matched against the service's documented configuration.
| Result | What you can conclude | Next step |
|---|---|---|
| The provider's original DNS matched | A match requires verification of the route | Check the documentation and connection settings |
| A documented expected resolver appeared | The result corresponds to the stated configuration | Clarify the conditions under which it applies |
| An unknown third-party resolver appeared | There is not enough information for a conclusion | Establish its ownership and the expected configuration |
| Several resolvers were shown | The number on its own does not prove a leak | Match each address against the documentation |
The catch: a resolver's name and country do not by themselves prove the absence of a leak or establish the route of the request.
For an individual service there is a guide to the Private Internet Access DNS test.
Checking IPv6 and WebRTC separately
Windscribe explains that IPv6 traffic can bypass a VPN that handles only IPv4. According to NordVPN's help centre, WebRTC can reveal your real IP address even when the VPN is active. These are separate checks: a DNS test shows the resolvers, whilst a WebRTC check reveals the IP addresses exposed by the browser. Behaviour when the connection drops is covered in the kill switch instructions for Windows.
Dealing with a suspicious result
You need to compare the result with the VPN's documentation and repeat the comparison. For Proton VPN there is a check of protection after installation. This page provides the instructions; the check itself is carried out by external tools.
Common mistakes
- Taking the resolver address for your own IP.
- Drawing conclusions based only on a server's name or country.
- Treating a DNS check as simultaneously an IPv6 and a WebRTC check.
Choosing the next step
If you use a VPN, match the results of the DNS leak test against the provider's stated DNS configuration and your connection settings.