VPN Security, Protocols & Post-Quantum

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

  1. Connect to Surfshark and run an extended test on dnsleaktest.com or ipleak.net.
  2. 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.
  3. Check IPv4 and IPv6 separately, as ipconfig.io advises.
  4. 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.
  5. 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

  1. Disconnect the VPN and run the test. Comparitech suggests starting from this baseline.
  2. 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.
  3. Connect Surfshark, open a new tab and run the standard test first, then the extended test.
  4. 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 showsWhat conclusion can be drawnWhat to check next
With the VPN on, the DNS of the provider or of the current network is visibleA serious sign of a leakIPv6, the DNS of the adapters and of the router; repeat the test after reconnecting
An unfamiliar resolverNo conclusion yetWho owns it; DNS in the system, the router, the browser, Private DNS on Android
A different server country or a changing IP between runsNot enough: ipleak.net's geodata comes partly from the MaxMind database and can be cached, while the IP may change because of rotationVerify the owners of the resolvers
A browser test came back cleanThe result holds only for that browser and that momentApps 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.

ScenarioWhat to enable or configureWhere this is confirmed
Windows/macOS laptop at homeDNS leak protection and a kill switchCitadelVPN: both features enabled; Proton: DNS leak protection in all apps
The test showed a real IPv6Disable IPv6 temporarily and repeat the testSurfshark advises disabling it; CyberGhost works with IPv4 only and gives the same advice
Home routerA VPN configuration on the router plus DNS encryptionCitadelVPN MAX: WireGuard, OpenVPN, VLESS, an example for Keenetic; GL.iNet documentation
Hotel Wi-Fi with filteringObfuscationCitadelVPN: VLESS and Hysteria2
Linux, manual setupConfiguration filesCitadelVPN: 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

  1. Disconnect from Surfshark, choose another server and connect again.
  2. Repeat the extended test in a new tab.
  3. 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

  1. 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.
  2. Check the properties of each network adapter to see whether DNS servers have been entered manually there.
  3. 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

  1. 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

  1. 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

  1. 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.
  2. 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

  1. Connect to the Wi-Fi and switch the VPN on straight away.
  2. 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

SymptomPossible causeOne changeHow to check again
The provider's DNS is visible with the VPN activeDNS is set in an adapter or in the routerCheck the DNS of each interface and of the routerRepeat the extended test
A real IPv6 is visible outside the VPNIPv6 does not go through the tunnelDisable IPv6 temporarilyTest on ipv6.ipleak.net
The real IP showed up during a dropThe kill switch is off or the mode is unsuitableEnable the kill switch or change the modeRepeat the disconnection check
WebRTC shows the provider's addressAn old tab or browser settingsOpen a new tab, check the browserCheck the WebRTC block
The browser is clean, an app goes to someone else's DNSPrivate DNS or split tunnellingDisable them one at a timeCheck after each one

If none of the measures helps:

  1. Save screenshots of the extended test over IPv4 and IPv6 together with the baseline.
  2. Send them to Surfshark support, referring to its article on checking whether the VPN works.
  3. 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.

Further sources

  1. dnsleaktest.com, dnsleaktest.com
  2. ipleak.net, ipleak.net
  3. ipconfig.io, docs.ipconfig.io
  4. Comparitech, comparitech.com
  5. BrowserLeaks, browserleaks.com
  6. vpnmeter, vpnmeter.com
  7. all apps, protonvpn.com
  8. works with IPv4 only, support.cyberghostvpn.com
  9. GL.iNet documentation, docs.gl-inet.com
  10. Surfshark itself, surfshark.com
  11. NordVPN, nordvpn.com
  12. The Best VPN, thebestvpn.com
  13. checking whether the VPN works, support.surfshark.com

Read next