A VPN DNS leak test is not merely a way to check whether a VPN application says “Connected.” A tunnel can be active while some domain requests still use the resolver supplied by your router, mobile carrier, workplace, or public Wi-Fi network. WebRTC can also expose local or public network information to a browser, while IPv6, split tunneling, cached answers, and application-specific settings can make the result difficult to interpret.
Privacy protection therefore requires more than checking one website. You need to understand which traffic is inside the tunnel, which resolver answers your domain requests, whether the browser can reveal network addresses, and what happens when the VPN connection is interrupted. This guide explains the main risks in plain English and provides a repeatable checking method for browsing, public Wi-Fi, payments, and account sign-ins.
What a DNS leak really means
DNS is the system that converts a domain name into an address that computers can use. When you type a website name into a browser, the browser or operating system needs an answer before it can start the connection. That request may be handled by the VPN service, the operating system, a browser-specific encrypted DNS service, a local router, or another resolver selected by the network.
A DNS leak occurs when a request that you expected to be protected by the VPN is sent to a resolver outside the intended VPN path. The destination may still receive traffic through the VPN, but the resolver operator or access-network operator can observe the domain lookup. DNS data can reveal browsing patterns even when the content of the final connection is protected by HTTPS.
It is important to distinguish a leak from a deliberate configuration. Some users choose split DNS so that internal work domains are resolved by a company resolver while public domains use the VPN. A browser may also use encrypted DNS directly to a provider by design. These arrangements are not automatically failures, but they should be intentional and compatible with your privacy requirements.
A DNS leak does not automatically reveal the full content of every page. HTTPS normally protects the path between the browser and the website, but it does not make every surrounding signal invisible. Resolver queries, connection timing, account identifiers, browser fingerprinting, cookies, and payment records can still connect activity to a person or account. A VPN is one privacy layer, not a replacement for secure accounts and careful browser settings.
Common causes and warning signs
The most common cause is a client that changes the route but does not correctly apply DNS settings. The operating system may continue using a resolver learned from DHCP, or an old resolver may remain active after a network change. This is especially common when a VPN is started after a browser has already opened connections, when a laptop moves between Wi-Fi networks, or when another network utility changes the resolver.
Another cause is a browser-level DNS setting. Modern browsers can use DNS over HTTPS independently of the operating system. This can improve protection against local network observation, but it may also send requests to a provider chosen in the browser rather than to the resolver managed by the VPN. Whether this is acceptable depends on your threat model. If the goal is for the VPN provider to handle DNS inside the tunnel, browser DoH should be reviewed rather than assumed to be harmless.
IPv6 creates a separate path that is easy to overlook. A VPN may protect IPv4 traffic while leaving IPv6 traffic outside the tunnel if the client does not support IPv6 routing correctly. In that situation, an address check can show the expected VPN egress for one address family while another request uses the local connection. Do not disable IPv6 automatically on every device; first check whether the client supports it and whether the operating system is configured consistently.
Split tunneling is another intentional but sometimes confusing feature. It can send selected applications or destinations outside the tunnel. If a browser, DNS service, or payment application is excluded, its requests may use the ordinary network. Review both the included and excluded lists, especially after importing a new configuration into Clash Verge, sing-box, Shadowrocket, or another compatible client.
| Observed result | Possible reason | What to inspect |
|---|---|---|
| Resolver belongs to the local network | VPN DNS was not applied, or the operating system kept the old resolver | VPN DNS mode, adapter priority, DHCP settings, and reconnect behavior |
| Browser and system tests disagree | Browser DoH, cache, proxy rules, or an extension is handling requests separately | Secure DNS setting, private browsing test, extensions, and browser restart |
| IPv4 looks protected but IPv6 appears local | Incomplete IPv6 support or a route outside the tunnel | Client IPv6 option, system interfaces, and the kill switch behavior |
| Results change after sleep or Wi-Fi switching | Routes and DNS were not restored after a network transition | Automatic reconnect, route refresh, and resolver status after reconnection |
| Only one application shows a leak | Per-app routing, proxy bypass, or a separate application DNS setting | Split-tunnel rules, application proxy settings, and local resolver configuration |
How to run a repeatable DNS test
Begin with a clean baseline. Disconnect the VPN and note the ordinary public address and resolver information shown by a reputable checking service. You can also use the site’s IP lookup page to understand which address is visible before the tunnel is enabled. Do not treat the baseline as a measurement of privacy quality; it simply helps you recognize whether the later result changes.
Next, close pages that may continue making background requests. Pause browser extensions that modify networking, and avoid testing while another proxy, corporate security agent, or traffic-filtering application is active. Do not run two VPN clients at the same time. Their virtual adapters, routes, and DNS policies may compete, producing a result that cannot be attributed to either client.
Connect through the official client or a compatible client using the intended configuration. Windows, macOS, Android, iOS, and Linux clients may expose different DNS controls, while Clash Verge, sing-box, and Shadowrocket may apply rules through their own local DNS engines. Wait until the connection is fully established, then open a fresh private browsing window and run both an address check and a DNS leak check.
- Record the visible public address and approximate region shown by the test service.
- Record the resolver names or organizations reported by the DNS test.
- Check whether any resolver is clearly tied to the local ISP, router, office, hotel, or mobile carrier.
- Repeat the test after refreshing the page, because one lookup may not show every resolver used.
- Disconnect the VPN and confirm that the result returns to the baseline before drawing a conclusion.
- Reconnect and repeat after changing from Wi-Fi to another access network, if that situation matters to your normal use.
A useful test is comparative rather than absolute. If the same local resolver appears whether the VPN is connected or disconnected, the client may be intentionally using an external resolver, or the test may be detecting cached information rather than a new request. Clear the browser DNS cache, restart the browser, and test again. Also remember that a resolver’s location is not proof of the physical location of your traffic; it is evidence about where the DNS request was answered.
WebRTC, IPv6, and kill-switch behavior
WebRTC is a browser technology used for real-time audio, video, and peer-to-peer communication. During connection setup, it can discover network candidates that are useful for establishing a direct media path. Depending on the browser, operating system, VPN implementation, and application settings, these candidates may include local interface information or an address that is not the one you expected a website to see.
WebRTC exposure is not the same as a DNS leak. A DNS test examines name-resolution requests; a WebRTC test examines browser networking candidates. If you do not use browser calling or peer-to-peer features, review the browser’s WebRTC privacy controls and extensions carefully. Avoid installing unknown extensions that promise to “fix” leaks, because an extension can gain access to browsing activity and may create a different privacy risk.
IPv6 should be tested separately when possible. A client that supports IPv4 tunneling may not automatically protect IPv6, and a system can prefer IPv6 whenever the local network advertises it. Check the client documentation for IPv6 support, then verify that the kill switch covers both address families. A kill switch is designed to block selected traffic when the tunnel is unavailable, but its exact scope differs between clients and operating systems.
Do not assume that a kill switch blocks every application in every state. Some clients offer a system-wide option, while others provide per-application protection or only block traffic after the tunnel has been established. Test it deliberately: connect, confirm that normal traffic works, temporarily interrupt the VPN connection, and observe whether applications stop or fall back to the ordinary network. Perform this test without entering passwords or submitting payment information.
- ✅ Check DNS and visible addresses after connecting, not only the client status.
- ✅ Test IPv4 and IPv6 behavior when your network provides both.
- ✅ Review browser WebRTC controls if browser-based calls or peer connections matter.
- ✅ Confirm whether the kill switch is system-wide or limited to selected applications.
- ❌ Do not run two VPN or proxy clients together during a privacy test.
- ❌ Do not treat a different resolver region as proof that every traffic path is protected.
Settings for browsing, Wi-Fi, payments, and sign-ins
For ordinary browsing, use a client mode that clearly states how DNS is handled. If the client offers an option to prevent DNS requests from leaving the tunnel, enable it only after checking how local network domains are affected. Keep browser DoH settings consistent with your goal: either let the VPN manage DNS through the tunnel or deliberately choose a browser resolver and understand that the browser may bypass the client’s DNS policy.
On public Wi-Fi, prioritize connection integrity over convenience. Confirm that the VPN starts after joining the network, and avoid assuming that the tunnel is active simply because the application window is open. Captive portals may require temporary access before the VPN can connect. After signing in to the Wi-Fi portal, reconnect the VPN and repeat the DNS and address checks. The setup tutorial can help you identify the client’s import, connection, and update steps before using an unfamiliar network.
For payments and account sign-ins, a VPN cannot hide the identity you deliberately provide to the service. A bank, shopping platform, or email provider can still associate activity with your account, cookies, device signals, recovery information, and transaction details. Use HTTPS, a unique password, and multi-factor authentication where available. Avoid switching locations repeatedly during a sensitive session if doing so triggers fraud controls or account verification.
DNS privacy also has a service-provider dimension. Review the VPN provider’s privacy policy for connection logs, DNS handling, diagnostic records, and retention periods. A provider may need limited operational data to maintain an account or troubleshoot a connection; that does not automatically mean it records every domain you visit. Look for specific language rather than relying on a slogan. The same principle applies to a third-party DoH resolver and to browser extensions.
VPNRZ supports Windows, macOS, iOS, Android, and Linux, and its service can also be used with compatible clients when the client supports the relevant subscription format and protocol. Shadowsocks, VMess, Trojan, Hysteria2, and WireGuard are not interchangeable privacy guarantees. They describe different connection mechanisms and transport behavior. DNS handling, routing mode, leak prevention, and logging policy still need to be checked separately.
What to do when a leak appears
First, identify the exact leak type instead of changing every setting at once. If only DNS is outside the intended path, inspect the client DNS option, the active network adapter, browser DoH, and split-tunnel rules. If WebRTC exposes an unexpected candidate, review browser permissions and WebRTC controls. If IPv6 bypasses the tunnel, check client support and the kill-switch scope before deciding whether the local interface should be disabled.
Second, reconnect in a controlled order. Close network-sensitive applications, disconnect the VPN, wait for the ordinary connection to return, reconnect the VPN, and then reopen the browser. This avoids confusing a stale browser socket or cached DNS answer with a new leak. If the issue appears only after sleep, roaming, or a router change, focus on automatic route and DNS restoration rather than changing the protocol immediately.
Third, inspect routing rules in compatible clients. A rule mode may intentionally direct some domains or applications through the direct interface. Global mode can simplify diagnosis, while rule mode may be better for ordinary use once the behavior is understood. Check the final outbound interface and DNS engine, not just the name of the selected node. A subscription update can replace rules or groups, so retest after importing a refreshed configuration.
Finally, update the client from an official source, remove duplicate adapters that are no longer needed, and restart the device if the operating system retains stale routes. If a leak persists across clean installations, different networks, and different clients, preserve the test conditions and contact support. Include the operating system, client type, protocol, routing mode, and whether the result concerns DNS, WebRTC, or IPv6. Do not include a private subscription link in a public report; treat it as a credential.
FAQ: DNS leak and privacy checks
Is a DNS leak dangerous?
It can reduce privacy because a resolver outside the intended tunnel may observe domain requests. The seriousness depends on the network, resolver operator, account activity, and your threat model. A DNS leak does not automatically expose page content, passwords, or payment details, especially when HTTPS is used, but it can reveal useful browsing metadata.
Does encrypted DNS solve every VPN leak?
No. DNS over HTTPS and DNS over TLS protect the connection between the device and the chosen resolver, but they do not guarantee that requests use the VPN tunnel. They also do not address WebRTC candidates, IPv6 routing, split tunneling, browser identifiers, cookies, or service logs. Encrypted DNS is one protection layer, not a complete VPN audit.
Why do DNS test results change after reconnecting?
Resolvers can vary because of load balancing, cached answers, browser DoH, network transitions, or changes in the client’s routing state. Repeat the test in a fresh private window, compare several lookups, and test after the connection has fully re-established. Record the client mode and network condition so that the results remain meaningful.
Can a VPN hide my identity when I sign in?
A VPN can change the network path and visible address, but a sign-in intentionally links activity to an account. The service may also use cookies, device signals, recovery details, and transaction information. Use strong account security, multi-factor authentication, HTTPS, and a consistent network setup rather than expecting a VPN alone to make an identified session anonymous.
Final takeaway: Check DNS, WebRTC, IPv6, routing, interruption behavior, and logging separately. A VPN is safer to use when its settings match your purpose, its direct routes are intentional, and its behavior remains understandable after reconnecting, changing networks, or updating a configuration.