Internet privacy

What is a DNS leak?

A DNS leak is a mismatch between where DNS queries are expected to go and where they actually go, often discussed in the context of VPNs.

Updated

Normal DNS resolution

A recursive resolver looks up domain information, querying authoritative servers as needed. The resolver can be supplied by the ISP, a VPN, the operating system or the browser. Encrypted DNS changes the transport to the resolver; it does not necessarily change the resolver operator.

Why a mismatch can occur

A VPN can tunnel application traffic while a browser or system uses a separately configured resolver. Split tunneling and encrypted-DNS settings can produce different behavior. A resolver in a different country, or one labeled with a public DNS brand, is not by itself evidence of a leak.

Trace the DNS query

Illustrative data · No network requests

Browserexample.com
VPN resolverExpected path
ISP resolverOutside tunnel
VPN activeExpected path
Expected route

A configured tunnel may carry DNS queries to the intended resolver.

Read all scenarios
  1. Expected route: VPN active · VPN resolver · Expected path. A configured tunnel may carry DNS queries to the intended resolver.
  2. Unexpected route: VPN active · ISP resolver · Outside tunnel. An unexpected resolver path may expose DNS queries outside the intended tunnel.
  3. Verify: Use a real DNS test · Observed resolver · Compare policy. The presence of a different resolver is evidence to investigate, not automatic proof of a leak.

How a test observes resolvers

A test can create unique DNS names under a domain it controls and observe which recursive resolvers query its authoritative servers. Correlating those requests with the browser session avoids relying only on cached DNS answers. Such a test observes the resolvers used for those test names, not every app.

Interpret before changing settings

Compare observed resolver operators with the VPN's documented DNS policy and your intended configuration. InspectMyIP has a controlled authoritative DNS service. Browser testing is enabled only after public delegation and the probe endpoint have been verified; local lab observations are labeled separately. The tool does not substitute an unrelated recursive resolver lookup.

Try this

Before relying on a test, check whether it uses an authoritative test domain and whether your VPN is supposed to tunnel browser DNS queries.

Inspect your own IP address →

Technical references