DNS resolver leak test
A page makes the browser look up unique hostnames so the site learns which DNS resolver the visitor uses.
In one line
Can find which DNS service your device uses by having it look up odd names
A page makes the browser look up unique hostnames so the site learns which DNS resolver the visitor uses.
The page requests random-subdomain.example. The authoritative server logs which recursive resolver asked, revealing the ISP, a public DNS (Google, Cloudflare), or a VPN leak. DoH hides it from the local network, not from the site.
What it can and can't do
What the user does: Nothing. It happens when the page loads in the background
It can
- Make your browser look up unique made up site names
- See which DNS service answers, such as your ISP, Google or Cloudflare
- Spot a VPN that leaks DNS
It cannot
- See which sites you visit in other tabs from this test
- Be hidden by encrypted DNS, which only hides it from your network, not from the site
- Learn your name from it
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 1 | 2008-12-11 | None |
| Edge | Supported | 79 | 2020-01-15 | None |
| Firefox | Supported | 1 | 2004-11-09 | None |
| Safari | Supported | 1 | 2003-06-23 | None |
| Safari on iPhone | Supported | 1 | 2007-06-29 | None |
| Chrome on Android | Supported | 1 | Not listed | None |
| Samsung Internet | Supported | 5.0 | 2016-12-15 | None |
How a site asks for it
| API | fetch/img to unique subdomains; authoritative DNS logging |
| How access is granted | none |
| What the user sees | Not listed |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | Not listed |
| How to take it back | Not listed |
| Inside an iframe | Not listed |
Typical flow
- Load unique subdomain resources
- Log resolver source IP
- Compare to client IP and VPN claim
Data you get
What comes back: Resolver IP and ASN
Shape: string
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
resolver ip | string | None | IPv4 or IPv6 | exact |
Technical limits
- ECS (EDNS client subnet) may leak a client prefix
- Resolver may not map to a person
The story
What it is
A page makes your browser look up odd web names so it can see which DNS service you use.
For you
You see nothing. The page quietly asks your browser to look up random names, and the site's own server sees which DNS service asked. That can show your internet provider or whether a VPN is leaking.
For makers
VPN, privacy and security testers use it to check leaks. Fraud teams can use it as one more clue to where you really are, even behind a VPN.
Where you see it
| Type | Example | Apps |
|---|---|---|
| security | A VPN leak test website shows which DNS service your computer uses, and whether it matches the VPN. | ipleak.net, dnsleaktest.com |
| security | A fraud system compares the DNS service with the claimed country and flags a mismatch. | None named |
| games | A game anti cheat or region lock service checks whether a player behind a VPN is faking a region. | None named |
| media | A streaming service checks for DNS tricks used to unlock other regions. | Netflix |
| analytics | A privacy researcher measures which DNS services people use. | None named |
| ads | A tracker can use the resolver as an extra clue to link visits. | None named |
Risks
- Can expose a VPN leak
- Hidden extra requests
Good uses and abuse
Legitimate uses
- Leak testing (dnsleaktest, browserleaks)
Known abuse
- VPN bypass detection, network profiling
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 2 of 5 | How revealing the data is |
| Utility | 4 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 2 | Rough identifying entropy, when known |
History
- 2020-02, Firefox: DoH default in the US
- 2020-05, Chrome 83: Automatic DoH upgrade for supporting resolvers
Related capabilities
Related
- VPN, proxy and Tor detection. Can guess whether you are hiding behind a VPN, proxy or Tor, but not always correctly
- ECH and DoH visibility. Can hide the site you visit from your internet provider, not from the site itself
Sources
How well checked: Based on official documentation.