Proxy Runs in your browser

DNS leak test

Find out which DNS servers answer your lookups.

price
Free
account
Not needed
runs
In your browser
Ready

The IP address our server sees

216.73.217.30

Your DNS servers should belong to the same network as this address, your VPN or proxy, or a public resolver you chose.

The test makes your browser look up ten random names. A test server records which DNS servers ask for them, and lists those servers here with their country and network.

This test uses the free service bash.ws: your browser contacts it directly, so it sees your IP address and DNS servers. Our server doesn't receive the results.

What a DNS leak is

Before your browser can open a site, it has to turn the name, like example.com, into an IP address. It asks a DNS resolver, usually the one your internet provider assigns. Every name you visit passes through that resolver, so its operator can see and log your browsing even when the pages themselves are encrypted.

A VPN, and some proxy setups, are meant to send those lookups through the tunnel too, to the VPN's own resolver or one you chose. A DNS leak happens when lookups still go to your provider's resolver, outside the tunnel. Websites then see the VPN's address, but your provider still sees every name you look up, and sites that run tests like this one can see that your DNS doesn't fit your IP.

How the test works and how to read it

The test creates a random ID and asks your browser to load ten addresses under it. The names don't exist anywhere else, so the only DNS servers that ever ask about them are the ones resolving for you. The test server records those servers and reports them with their country and network.

  • If you use a VPN or proxy, the servers should belong to the VPN, the proxy provider or a public resolver you set yourself, such as Cloudflare, Google or Quad9.
  • If you see your home or mobile provider's servers, or servers in your real country, your DNS is leaking.
  • Without a VPN, seeing your provider's resolver is normal: that's not a leak, just the default.

Many resolvers are spread over many locations, so a few addresses from one operator in different countries is normal.

How to fix a DNS leak

  • Turn on your VPN app's DNS leak protection, or its "use VPN DNS" option, and its kill switch.
  • Turn on encrypted DNS in your browser (DNS over HTTPS); the hint below the test shows where. This protects lookups made by the browser.
  • For a proxy, use SOCKS5 with remote DNS (socks5h), so the proxy resolves names instead of your device. Our HTTP and SOCKS5 guide explains the difference.
  • Run the test again after each change, and check WebRTC too with the WebRTC leak test.

If the test can't reach bash.ws, you can still check by hand: look up the DNS server addresses in your device's network settings and compare them with the resolvers you expect, for example 1.1.1.1 (Cloudflare), 8.8.8.8 (Google) or 9.9.9.9 (Quad9). The IP lookup shows who runs any address.