On this page
Two answers to one question
Your device sends DNS questions to the server in its network settings. At home that is usually the router itself, 192.168.1.1 or similar. The router doesn't know the answers: it passes the questions on to your ISP's DNS or to the one set in it.
So the settings name the first stop and a leak test names the last one: the resolver that went to the site's own name servers. With a VPN on, both should lead into the tunnel.
Windows
Get-DnsClientServerAddress -AddressFamily IPv4The servers of each adapter: look at Wi-Fi or Ethernet, and at the VPN adapter while it is connected.
ipconfig /allDNS Servers under each adapter.
macOS
scutil --dns | grep nameserverThe servers of each resolver; a connected VPN adds its own.
networksetup -getdnsservers Wi-FiOnly servers set by hand. “There aren't any DNS Servers set” means they come from the router.
Linux
resolvectl statusCurrent DNS Server of each link, where systemd-resolved runs (Ubuntu, Fedora and others).
cat /etc/resolv.conf127.0.0.53 there is systemd-resolved itself: the real servers are in resolvectl status.
Android and iPhone
- Android: Settings → Network & internet → Private DNS (on Samsung: Connections → More connection settings → Private DNS). Off or Automatic means the network's DNS; a host name there, such as
dns.google, means that server answers everything over DNS over TLS. - The network's own DNS shows in the Wi-Fi network's details under IP settings, if it was set by hand.
- iPhone and iPad: Settings → Wi-Fi → the (i) next to the network → Configure DNS shows Automatic or the servers set by hand. A DNS profile or a VPN can replace them.
Who actually answers
The DNS leak test on this site makes the browser look up a few random names and shows which resolvers came to our DNS server for them. Your ISP's servers mean your ISP answers. Google, Cloudflare or Quad9 mean a public DNS, chosen by you, the router or the browser.
- The router passes questions on: the settings show the router, the test shows the ISP.
- The browser has its own DNS over HTTPS (Chrome, Edge, Firefox): the test shows that provider whatever the system has.
- A VPN sets its own DNS while connected; after it disconnects, the old one comes back.
- Public DNS services run many servers: the test may show several addresses of one company.