DNS leak test

DNS Leak Test: Do Your DNS Lookups Go Around Your Proxy?

ProxyField's free DNS leak test makes 6 lookups of unique test names and shows every DNS server that resolved them, with its IP, ISP, network (ASN) and country, next to the IP websites see, so you can tell whether your lookups go around your proxy or VPN.

It starts when the page opens, results come in seconds, and there is no sign-up.

DNS leak test · 6 lookups
Checking…
Checking
The IP websites see
IP address
—
Network
—
Country
—
DNS servers that resolved your lookups
Resolver IPISP or organizationCountryLookupsClient subnet
Sending the test lookups…
IP data: DB-IP Lite, CC BY 4.0. The lookups are kept in memory for up to 5 minutes so this page can read them, then dropped.

Run it with your proxy or VPN off and then on. The resolvers of the first run are usually your internet provider's; if they still show up in the second run, your DNS goes around the tunnel or the proxy.

The test uses a ProxyField test domain and ProxyField's own DNS server, which records which resolver asked for each name: its IP, and the client subnet if the resolver sends one. Nothing is saved: there is no account, no record of your results and nothing in browser storage. The server keeps a test's lookups in memory for up to 5 minutes, so your browser can read them, then drops them.

QuestionShort answer
Do I have a DNS leak?Likely, if a resolver is your own provider's or sits in another country than your proxy or VPN (what the verdicts mean)
Why does it show Google or Cloudflare?You, your router or the proxy side uses that public resolver; where it answered from is what counts (public resolvers)
How do I fix it?Remote DNS with SOCKS5, DNS through the VPN tunnel, or Secure DNS in the browser (fixes)
How it works

How to check for a DNS leak

Compare two runs in the same browser or profile, without and with the proxy or VPN.

  1. With the proxy or VPN off, open this page and note the resolvers and their ISP: they are usually your provider's.

  2. Turn the proxy or VPN on, in the same browser or profile, and press Run again.

  3. Compare: no resolver from step 1 may remain, and the verdict should be No DNS leak.

Results

What the results mean

The verdict compares each resolver with the IP websites see, and the table lists one resolver per row.

No DNS leak
The resolvers are in your proxy's or VPN's country or network.
Possible DNS leak
One or more resolvers are in another country, or belong to your own provider, so some of your lookups may go around the proxy or VPN.
No lookups reached us
None of the 6 lookups arrived at ProxyField's DNS server, so there is nothing to compare: DNS is blocked, or the answers came from a cache.
Resolver IP
The address the lookup reached ProxyField's DNS server from, which is the resolver's outgoing address, not your device's.
ISP, ASN and country
Who runs the resolver and where it is, from the DB-IP Lite databases.
Lookups
How many of the 6 lookups that resolver made.
Client subnet
The network a lookup came from, when the resolver passes it on (EDNS Client Subnet); a subnet of your own provider gives your network away even if the resolver is a public service.
The IP websites see
The address this page loaded from, the one each resolver is compared with.
Testing guide

What a DNS leak is

Before your browser opens a site, a DNS resolver turns the site's name into an IP address. The resolver sees every name you look up and the address that asked, or a subnet of it. With a proxy or VPN, those lookups should happen on the proxy or VPN side. A DNS leak is when they go to a resolver outside it, usually your internet provider's: the names of the sites you visit go to your provider, and your provider's network shows up next to an IP that is supposed to replace it.

For a site, a resolver in another country than your IP, or a home ISP's resolver next to a datacenter IP, is a sign that the traffic is relayed. Any page can run a lookup like this test does, without asking, so a leak shows up on more sites than leak test pages.

How the test works

The page has your browser look up 6 random names under a ProxyField test domain. Each name is new, so no cache holds the answer: the lookup has to travel from your device, or from the proxy side, to a recursive resolver, and from that resolver to ProxyField's DNS server, the authoritative server for the test domain. That server records which resolver asked and, when the resolver includes one, the client subnet. The page then shows each resolver with its ISP, ASN and country from the DB-IP Lite databases, next to the IP the page itself loaded from.

Several lookups show more of your setup: one resolver service often answers from several outgoing addresses, and your system may ask more than one configured server. The IP checker runs a quick version with 2 lookups as one of its 10 checks.

Who resolves the name: proxy, SOCKS5, VPN and Secure DNS

  • HTTP and HTTPS proxies. The browser sends the site's name to the proxy, and the proxy side resolves it. Your own resolver is not asked about the pages you load through the proxy, so the test shows the proxy side's resolvers.
  • SOCKS5. Either side can resolve. With remote DNS, your client sends the name and the proxy resolves it; with local DNS, your device looks the name up first and sends only the IP, and the lookup leaks. In Firefox, tick "Proxy DNS when using SOCKS v5". In scripts, use socks5h:// instead of socks5://, or --socks5-hostname in curl.
  • Lookups outside page loads. Chromium's notes on SOCKS proxies warn that parts of the browser other than page loads, such as DNS prefetching, can still resolve names locally. The test shows whether that happens in your setup.
  • VPN. The VPN app must send DNS through the tunnel, to its own resolver or to another one reached through it. Leaks happen when the system keeps the router's or the provider's resolver, when IPv6 lookups go outside the tunnel, or when Windows sends a lookup over every network adapter at once (smart multi-homed name resolution) and the VPN app does not stop it.
  • Secure DNS (DNS over HTTPS). The browser sends lookups encrypted to the provider you chose, such as Cloudflare or Google. Your internet provider can no longer read or redirect them, but the DNS provider sees them, and without a VPN or proxy it sees your real IP. With a VPN, they go through the tunnel like everything else.

Why the test shows Google, Cloudflare or another public resolver

Large public resolvers answer from many locations at once (anycast), and the outgoing address this test sees usually belongs to the location nearest to whoever sent the lookup. That makes it a location signal: Google's resolver in Germany next to a US proxy IP means the lookup started in Germany, on your side. The same resolver in the US suggests the proxy side made it.

So a public resolver is not a leak by itself: what counts is where it answered from and whether the lookup started on your side. That is also why the verdict says Possible DNS leak: a proxy service's own resolver can sit in another country than its exit IP. Compare with your run without the proxy: if none of those resolvers remain, your own lookups are not leaking.

Some resolvers, such as Google Public DNS, can pass a shortened client subnet to the DNS server, which shows the network the lookup came from; Cloudflare's 1.1.1.1 does not send one. And your provider's resolver can show up even when you set another one: some providers catch all DNS traffic on port 53 and answer it themselves (a transparent DNS proxy). Secure DNS in the browser, or DNS through a VPN, avoids that.

How to fix a DNS leak

The setting names below are the ones the apps show; labels can differ slightly between versions.

In the browser

  • Chrome: Settings, Privacy and security, Security, Use secure DNS.
  • Edge: Settings, Privacy, search, and services, Security, Use secure DNS.
  • Firefox: Settings, Privacy & Security, DNS over HTTPS.
  • Brave: Settings, Privacy and security, Security, Use secure DNS.

Choose a named provider rather than your current service provider, so lookups stop going to your internet provider's resolver. Safari follows the system's DNS settings.

With SOCKS5 and in scripts

Let the proxy resolve names. In Firefox, tick "Proxy DNS when using SOCKS v5". In curl and Python, use socks5h://; ProxyField's examples use it so the gateway resolves the site's name:

Shell
curl -x socks5h://gate.proxyfield.io:7000 -U "<login>-country-us:<password>" https://api.ipify.org

In Python, run pip install "requests[socks]" and pass socks5h://<login>-country-us:<password>@gate.proxyfield.io:7000 as the proxy. HTTP proxies resolve on the proxy side in every client.

With a VPN

Turn on the app's DNS leak protection, or its own DNS, so lookups go through the tunnel. Turn off split tunneling for the browser, and if the app does not tunnel IPv6, turn IPv6 off for the network adapter.

In the operating system and the router

  • Windows: the adapter's DNS servers are in Settings, Network & internet, under the connection's properties; a VPN app with leak protection also stops lookups on other adapters.
  • macOS: System Settings, Network, your connection, Details, DNS.
  • Router: a router hands its resolver to every device on the network, usually the provider's; change it there, or rely on Secure DNS or a VPN on each device.

In antidetect browsers

Set the proxy type your provider gives (HTTP or SOCKS5) in the profile, and the profile resolves names through the proxy. If this test inside the profile still shows your provider's resolvers, check the proxy type and any DNS option the app has. Setup for each app: antidetect browsers.

What sites learn from your DNS resolver

A resolver tells a site three things: the country it answers from, the network that runs it and, with a client subnet, the network the lookup came from. Anti-fraud systems can compare all three with your IP. A home ISP's resolver in one country next to a proxy IP in another reads as relayed traffic, a company or school resolver ties the session to that network, and your own provider's subnet next to a datacenter IP ties the proxy session to you. None of this needs a permission prompt, and it works the same in every browser.

Why DNS leak tests show different results

  • Number of lookups. A test with 1 lookup can miss a second resolver your system uses; longer tests catch more.
  • Outgoing addresses. Large resolvers answer from many addresses, so two runs can show two IPs of the same service.
  • IP data. Each test looks resolvers up in its own database, so the ISP name or the country can differ.
  • Caches and blockers. A test that reuses names gets cached answers, and a content blocker can stop the lookups entirely.
  • What is compared. Some tests list resolvers without comparing them with the IP they see, and that comparison is what turns a list into a verdict.

Need proxies that resolve DNS on the proxy side?

With ProxyField, HTTP and HTTPS proxies and SOCKS5 with socks5h:// leave the lookup to the gateway, so your own provider is not asked about the sites you open through them. Residential proxies cost from $1.95/GB, mobile proxies from $2.45/GB and rotating datacenter proxies from $0.22/GB; start with the Easy Trial: 1 GB for $2.95. For one fixed IP per profile, dedicated ISP proxies cost from $2.29 per IP for 30 days ($2.29 in Turkey and Czechia, $2.79 in every other country).

A proxy covers only the traffic you send through it. Set it in the browser or profile you use, set WebRTC to use the proxy's IP, and run this test again with the proxy on. Prices for every volume are on the pricing page.

FAQ

DNS Leak Test FAQ

Can't find your answer? Support is on 24/7 live chat, including help with setup and integration.

What is a DNS leak test?

ProxyField's DNS leak test makes 6 lookups of unique test names and shows every DNS server that resolved them, with its IP, ISP, ASN and country, next to the IP websites see. If a resolver is your own provider's, or sits in another country than your proxy or VPN, your lookups go around it, and that is a DNS leak.

What does a DNS leak reveal?

The names of the sites you open, to whoever runs the resolver, usually your internet provider. It also shows your provider's network, and often your rough location, to every site that runs a lookup like this one. A site that sees a home ISP's resolver in one country next to an IP in another knows your traffic is relayed.

Is a DNS leak dangerous?

It is a privacy problem, not a security hole: the resolver's operator can log which sites you look up, and sites can see that your DNS does not fit your IP. It does not expose your device or your passwords. Fix it if you use a proxy or VPN to keep your browsing or your location to yourself.

Why does my DNS leak test show my ISP?

Your lookups still go to your provider's resolver: the VPN does not send DNS through the tunnel, SOCKS5 resolves names on your device, or your provider catches DNS traffic and answers it itself. Turn on the VPN's DNS protection, use remote DNS with SOCKS5 (socks5h://, or "Proxy DNS when using SOCKS v5" in Firefox), or turn on Secure DNS in the browser.

Why does the DNS leak test show Google or Cloudflare?

You, your router or the proxy side uses that public resolver. Those services answer from many places at once, and the location shown is usually the one nearest to whoever sent the lookup. Google's resolver in your own country next to a proxy abroad means the lookup started on your side; in the proxy's country, the proxy side probably made it.

Does a VPN stop DNS leaks?

Only if it sends DNS through the tunnel, which VPN apps do when their DNS protection is on. Leaks come from IPv6 lookups outside the tunnel, split tunneling, a resolver the system keeps from the router, and Windows sending a lookup over every network adapter at once. Test with the VPN on to see.

Do HTTP proxies leak DNS?

Not for the pages you load through them: the browser sends the site's name to the proxy, and the proxy side resolves it. Leaks come from traffic that does not use the proxy, such as other apps, and from browser features that can look names up on their own.

Is SOCKS5 enough to prevent DNS leaks?

Only with remote DNS. With socks5:// or a client set to resolve locally, your device looks the name up first and the lookup leaks; with socks5h://, or "Proxy DNS when using SOCKS v5" in Firefox, the proxy resolves it. ProxyField's examples use socks5h:// so the gateway resolves the site's name.

Does DNS over HTTPS stop DNS leaks?

It stops your internet provider from reading or redirecting your lookups, because the browser sends them encrypted to the service you chose. It does not hide your IP from that service, and without a VPN or proxy this test still shows a resolver near you.

What is EDNS Client Subnet?

An extension (ECS) that lets a resolver pass a shortened part of your IP, a subnet, to the DNS server, so it can answer with a server near you. This test shows the subnet when a resolver sends one: a subnet of your own provider means the lookup came from your network, even if the resolver is a public service. Some resolvers, such as Cloudflare's 1.1.1.1, do not send it.

Show 11 more questionsShow fewer questions

Why are there several DNS servers in my results?

Resolver services answer from several outgoing addresses, and your system may ask more than one configured server, such as two of your provider's. Several rows from one provider are normal; what matters is whose they are and where.

Why did no lookups reach the test's DNS server?

Something stopped the 6 lookups before they reached ProxyField's DNS server: a content blocker or DNS filter that blocks the test domain, a network that allows only its own DNS, or answers from a cache. Pause the blocker or try another network, then press Run again.

Can a website run a DNS leak test on me?

Yes. Any page can make your browser look up a unique name on a domain the site controls, and the site's DNS server then sees which resolver asked, without a prompt. Some anti-fraud systems use this to compare your resolver with your IP.

How do I fix a DNS leak on Windows?

With a VPN, turn on its DNS leak protection, which also stops Windows from sending lookups over other network adapters, and turn IPv6 off on the adapter if the VPN does not tunnel it. With a proxy in the browser, use HTTP or SOCKS5 with remote DNS. To change the resolver itself, edit the adapter's DNS servers in Settings, Network & internet.

How do I fix a DNS leak on a Mac?

Use the VPN app's DNS setting, or set the DNS servers in System Settings, Network, your connection, Details, DNS. In Chrome, Edge, Brave and Firefox, you can also turn on Secure DNS, while Safari follows the system settings. With a SOCKS5 proxy, make sure the proxy side resolves names.

Does a DNS leak show my real IP address?

Not directly: the DNS server sees the resolver's address, not yours. But the resolver is usually near you and often your provider's, and with EDNS Client Subnet it can pass on a shortened part of your own IP, so a leak gives away your network and rough location.

How many lookups does a DNS leak test need?

Enough to catch every resolver your setup uses, since one lookup can miss a second server. This test makes 6 and lists each resolver with how many of them it made. If a resolver you do not expect appears, press Run again to see whether it repeats.

Can my router cause a DNS leak?

Yes. A router hands out a resolver to every device, usually your provider's or the router itself, and a device without a VPN or Secure DNS uses it. Behind a VPN, a system that keeps the router's resolver for some lookups leaks them.

Does private browsing stop DNS leaks?

No. Private windows clear history and cookies when you close them, but they look names up through the same resolver as normal windows. Use Secure DNS, remote DNS on the proxy, or a VPN that sends DNS through the tunnel.

What is a transparent DNS proxy?

A provider's system that catches all DNS traffic on port 53 and answers it with the provider's own resolver, whatever server you set. A leak test then shows your provider's resolver even though you chose another one. Secure DNS in the browser, or DNS through a VPN tunnel, avoids it.

Do DNS leaks matter for antidetect browser profiles?

Yes: a profile whose lookups come from your home provider while its IP is a proxy in another country does not fit together, and a site can see that. Run this test inside each profile with its proxy on. With an HTTP or SOCKS5 proxy set in the profile, names should be resolved through the proxy.