Step by step
Surfshark DNS leak: how to check for it and fix it
If you suspect a Surfshark DNS leak, first make sure it actually exists, and only then start changing settings. An online test shows the resolvers that answered its probe requests. If, with the VPN on, the DNS server of your provider or of the current network appears among them, that is a serious signal. An unfamiliar resolver, a different server country or a changing IP between runs does not prove a leak on its own. For the check you will need a device running Surfshark, a browser and access to the system's network settings; for a home router, you will also need access to its control panel.
From VPN Security, Protocols & Post-Quantum — Last reviewed
Taking the shortcut to check and fix
- Connect to Surfshark and run an extended test on dnsleaktest.com or ipleak.net.
- Compare the list of resolvers with a measurement taken without the VPN. The same resolver as without the VPN, or the provider's server, calls for further checks.
- Check IPv4 and IPv6 separately, as ipconfig.io advises.
- Choose one change to match the symptom (see the table in the section "If the leak does not go away") and repeat the same test after each change.
- If the provider's resolver does not disappear, send screenshots of the tests to Surfshark support.
A DNS leak is a situation in which requests to convert website names into addresses travel outside the tunnel, and the provider can see which domains the device opens.
Telling a real leak from a false alarm
Standard and extended tests: what to look at
- Disconnect the VPN and run the test. Comparitech suggests starting from this baseline.
- Write down the resolvers shown. These are not necessarily the provider's servers: another DNS may be set in the system or in the router.
- Connect Surfshark, open a new tab and run the standard test first, then the extended test.
- Compare the two lists against the table below.
The extended test sends more requests, so it catches rare leaks more often. BrowserLeaks, for example, resolves 50 random domains: 25 over IPv4 only and 25 over IPv6 only.
| What the test shows | What conclusion can be drawn | What to check next |
|---|---|---|
| With the VPN on, the DNS of the provider or of the current network is visible | A serious sign of a leak | IPv6, the DNS of the adapters and of the router; repeat the test after reconnecting |
| An unfamiliar resolver | No conclusion yet | Who owns it; DNS in the system, the router, the browser, Private DNS on Android |
| A different server country or a changing IP between runs | Not enough: ipleak.net's geodata comes partly from the MaxMind database and can be cached, while the IP may change because of rotation | Verify the owners of the resolvers |
| A browser test came back clean | The result holds only for that browser and that moment | Apps with their own resolver and WebRTC |
The same methodology, applied to another service, is covered in the article about a DNS leak test for Private Internet Access.
Why IPv4 and IPv6 are checked separately
According to ipconfig.io, the most common VPN failure looks like this: IPv4 goes through the tunnel, while the real IPv6 address travels outside it. For such a check, ipleak.net offers the addresses ipv4.ipleak.net and ipv6.ipleak.net, each of which forces a single address family.
A Surfshark setting that muddies the result
In Settings → VPN settings, Surfshark has a setting that changes the outgoing IP every few minutes without dropping the session (vpnmeter). A hypothetical example of two situations: in the first, two runs showed different IPs, but all the resolvers belong to the VPN, and there is no leak. In the second, the IP is stable, but the provider's server flashed up in the extended test — and that is what warrants checking IPv6 and DNS settings.
How far to trust online tests
An online test shows only the resolvers that see requests from the browser. A reliable picture is built from a measurement without the VPN, an extended test and separate checks of IPv6 and WebRTC.
Matching protection to your situation
Whether each feature from the table is present in the Surfshark app needs to be verified against its help documentation.
| Scenario | What to enable or configure | Where this is confirmed |
|---|---|---|
| Windows/macOS laptop at home | DNS leak protection and a kill switch | CitadelVPN: both features enabled; Proton: DNS leak protection in all apps |
| The test showed a real IPv6 | Disable IPv6 temporarily and repeat the test | Surfshark advises disabling it; CyberGhost works with IPv4 only and gives the same advice |
| Home router | A VPN configuration on the router plus DNS encryption | CitadelVPN MAX: WireGuard, OpenVPN, VLESS, an example for Keenetic; GL.iNet documentation |
| Hotel Wi-Fi with filtering | Obfuscation | CitadelVPN: VLESS and Hysteria2 |
| Linux, manual setup | Configuration files | CitadelVPN: its own Linux app, with manual setup also available; Windscribe: OpenVPN (information as of 4 November 2026) |
Closing the leak in the app, the system and the browser
Reconnecting and IPv6
- Disconnect from Surfshark, choose another server and connect again.
- Repeat the extended test in a new tab.
- If the test showed the provider's real IPv6 address, disable IPv6 temporarily in the network adapter settings and repeat the test.
Disabling IPv6 is recommended by Surfshark itself. If the provider's address disappeared afterwards, the IPv6 requests were travelling outside the tunnel.
The DNS cache and adapter settings in Windows 10/11
- Open the command line and run
ipconfig /flushdns. Clearing removes saved answers but does not change the route of requests, so without repeating the test it proves nothing. - Check the properties of each network adapter to see whether DNS servers have been entered manually there.
- Reconnect the VPN and repeat the same test.
Clearing the DNS cache is also recommended by Surfshark. NordVPN names incorrect network settings, software updates and manual network edits among the causes of leaks. According to ipleak.net, in Windows each interface can have its own DNS, and the system process svchost.exe sometimes sends requests that bypass the VPN gateway. This is a classic cause of a leak.
A kill switch for connection drops
- Make sure the kill switch is on, cut the connection (for example, by switching networks) and watch whether traffic travels outside the VPN.
A kill switch blocks all traffic outside the VPN (The Best VPN), but if the tunnel is active and DNS still looks suspicious, it does not solve the problem. The disconnection check should be repeated after every change of mode; it is described step by step in the article about a kill switch test in Windows.
WebRTC in the browser
- After connecting the VPN, open ipleak.net in a new tab and look at the WebRTC block.
WebRTC learns the public IP through STUN. A leak means the provider's address instead of the VPN's exit address. An entry of the form *.local in Chromium-based browsers hides a local address and is not a leak. An old tab may hold an address obtained before connecting. Checking IP, DNS and WebRTC in one scenario is covered in the article about Mullvad.
Checking the router and hotel Wi-Fi
A VPN on the router at home
- Connect a laptop or phone to the Wi-Fi of a router with a configured VPN, with the VPN switched off on the device itself.
- Run an extended test and compare the output with a measurement without the VPN.
A VPN on the router covers every device in the house, including the television and the console, so it should be tested from a client of that network. The output should not include the provider's DNS server, which is often set in the router by default. The GL.iNet documentation gives an example of combining a VPN with DNS encryption on a router.
Hotels and public networks
- Connect to the Wi-Fi and switch the VPN on straight away.
- Run dnsleaktest.com or ipleak.net and only after that open email or banking.
If the network does not let the VPN connect, obfuscated protocols from the table above may help. Leak testing on networks with strict filtering is covered in the article about checking a VPN in Iran.
If the leak does not go away
| Symptom | Possible cause | One change | How to check again |
|---|---|---|---|
| The provider's DNS is visible with the VPN active | DNS is set in an adapter or in the router | Check the DNS of each interface and of the router | Repeat the extended test |
| A real IPv6 is visible outside the VPN | IPv6 does not go through the tunnel | Disable IPv6 temporarily | Test on ipv6.ipleak.net |
| The real IP showed up during a drop | The kill switch is off or the mode is unsuitable | Enable the kill switch or change the mode | Repeat the disconnection check |
| WebRTC shows the provider's address | An old tab or browser settings | Open a new tab, check the browser | Check the WebRTC block |
| The browser is clean, an app goes to someone else's DNS | Private DNS or split tunnelling | Disable them one at a time | Check after each one |
If none of the measures helps:
- Save screenshots of the extended test over IPv4 and IPv6 together with the baseline.
- Send them to Surfshark support, referring to its article on checking whether the VPN works.
- In parallel, test an alternative without financial risk.
For the third step, CitadelVPN offers a 5-day trial period, money back within 14 days (the company's terms as of 16 October 2026) and a 24/7 support chat. The chronology of other incidents is collected in reports on VPN vulnerabilities.
Frequently asked questions
- Do you need a VPN with its own DNS servers?
Yes, this reduces the risk of a leak. In general terms, DNS leak protection directs system requests through the tunnel to the VPN service's resolver (a description of the mechanism, not the design of any particular app). Then, with the tunnel active, the service's resolvers should appear in the test output.
- Does a VPN on the router protect a phone on mobile data?
No. The router protects only devices on its Wi-Fi. On a mobile network the phone needs its own VPN client, and the test should be repeated there.
Deciding what to do next
- If a leak has been confirmed and you need a service with minimal manual setup, consider CitadelVPN: DNS leak protection and a kill switch are enabled, and the terms give 5 days of trial and 14 days for a refund. After installation, repeat the same test.
- If protecting the whole house through a router matters, go for CitadelVPN MAX with WireGuard, OpenVPN or VLESS configurations.
- If connecting on filtered hotel networks matters, go for CitadelVPN with VLESS and Hysteria2.
- If DNS leak protection across all clients of a single service matters, Proton states outright that it is present in every app.