← Back to Blog
dnsprivacynetworking

What Is My DNS Server? How to Find It on Any Device

Published 6 min readOutline Technologies
A home router sending a cyan beam to one of several glowing server towers

The short answer

On Windows run ipconfig /all and read the DNS Servers line. On a Mac run scutil --dns. On iPhone tap the info button next to your Wi-Fi network. Often that only shows your router, so to see the resolver that really answers your lookups, run nslookup whoami.akamai.net: the address it returns belongs to that resolver.

/24

of your IP that Google Public DNS passed on to websites in our test

0

parts of your IP that Cloudflare 1.1.1.1 passed on

3 of 3

tested resolvers that refused a deliberately broken DNSSEC domain

Every time you open a website, your device first asks a DNS server to turn the name into an address. That server sees every site you visit, can be slow or fast, and decides whether you can reach a site at all. Most people have never chosen theirs. It was picked for them by their internet provider or their router.

Here is how to find out which one you are using, how to see the one that really answers, and how the popular public options compared when we tested them.

Find your DNS server on every device

Windows

Open Command Prompt and run:

ipconfig /all

Find your active connection (Wi-Fi or Ethernet) and read the DNS Servers line. In PowerShell this gives a shorter list:

Get-DnsClientServerAddress -AddressFamily IPv4

Or go through Settings: Network and internet, choose your connection, then Hardware properties, and look for DNS server assignment.

Mac

Open System Settings, choose Network, click your connection, then Details, then the DNS tab. Addresses shown in grey were handed out by the network. Addresses in black were set by hand.

In Terminal:

scutil --dns | grep nameserver

Linux

On most current distributions, which use systemd-resolved:

resolvectl status

Look for Current DNS Server. On older setups, cat /etc/resolv.conf shows the nameserver lines.

iPhone and iPad

Open Settings, tap Wi-Fi, tap the blue info button next to your network, and scroll to Configure DNS. The addresses listed are the ones the network assigned. On mobile data there is no screen for this; use the method in the next section.

Android

Android shows Private DNS under Settings, Network and internet (the exact menu name varies by brand). If it says Off or Automatic, your phone uses whatever the network provides, and most phones do not show that address anywhere in the settings. Use the method below to find it.

Your router

Most devices show the router as the DNS server, often 192.168.0.1 or 192.168.1.1. Log in to the router's admin page (that same address in a browser) and look under WAN, Internet or DNS settings to see where it forwards your lookups.

See the resolver that really answers

The address in your settings is often just your router, which passes everything to another server. To see the server that actually does the work, ask a domain that reports back who asked.

nslookup whoami.akamai.net

The address in the answer is the outgoing address of the resolver that queried Akamai on your behalf. Look it up with our IP lookup and you will see whether it belongs to your internet provider, your VPN, Google, Cloudflare or someone else.

Google runs a similar check that also shows how much of your own address the resolver passes along:

nslookup -type=TXT o-o.myaddr.l.google.com

The first answer is the resolver's address. If a second answer starts with edns0-client-subnet, the resolver is forwarding part of your IP address to the servers it asks. More on that below.

If you use a VPN, the DNS leak test is the quicker route: it shows every resolver your lookups reach and flags the ones that do not belong to the VPN. Our guide on how to check for a DNS leak explains the results.

How the big public resolvers compared

We tested four public resolvers on 23 October 2026 through their DNS over HTTPS services, the same way a browser with secure DNS turned on reaches them. Three questions mattered:

  • Do they validate DNSSEC? We asked each one for dnssec-failed.org, a domain whose security signatures are broken on purpose. A resolver that checks signatures must refuse to answer.
  • Do they pass part of your IP address on? Some resolvers include the first part of your address (a "client subnet") when they ask a website's DNS servers, so the site can pick a nearby server. It helps speed a little and costs a little privacy.
  • Do they answer normal queries correctly? All of them did.
ResolverAddressesRefused broken DNSSEC domainPassed part of your IP onFiltering
Google Public DNS8.8.8.8, 8.8.4.4YesYes, your /24None
Cloudflare1.1.1.1, 1.0.0.1YesNoNone (1.1.1.2 blocks malware, 1.1.1.3 adds adult content)
AdGuard DNS94.140.14.14, 94.140.15.15YesA /24, but not oursBlocks ads and trackers
Quad99.9.9.9, 149.112.112.112Not testedNot sent on 9.9.9.9, per Quad9Blocks known malicious domains

A few notes on what we saw:

  • Google forwarded our real /24. The test answer contained our own network's first three numbers. That is documented behaviour: Google sends a client subnet so content networks can choose a server close to you.
  • Cloudflare forwarded nothing. Its answer contained only Cloudflare's own address.
  • AdGuard sent a subnet that was not ours. The answer included a /24 from a completely different network. It appears AdGuard sends an approximate location instead of your real address, which gives some of the speed benefit without exposing your network.
  • Quad9 could not be reached from our test connection. Quad9's own documentation says 9.9.9.9 does not send client subnet data and 9.9.9.11 does, so you can choose.

Speed depends almost entirely on where you are, so we are not publishing a speed ranking from one location. The fastest resolver for you is usually the one with a server in your city. If you want to compare, run nslookup example.com 1.1.1.1 and the same with 8.8.8.8 and 9.9.9.9 a few times each and see which comes back quickest.

When it is worth changing your DNS server

  • Sites do not load, or load slowly, but your connection is fine. Your provider's resolver may be overloaded or broken. Switching usually fixes it at once.
  • You want fewer ads or some protection from malicious sites. AdGuard DNS, Quad9 or Cloudflare's 1.1.1.2 filter at the DNS level, with no software to install.
  • You do not want your provider to see every site you visit. Change the resolver and turn on DNS over HTTPS in your browser or system settings, otherwise the lookups still travel in plain text.
  • Leave it alone at work or school. Those networks often rely on their own DNS to reach internal systems.

The bottom line

Your DNS server is listed in your network settings, but that is often just your router. To see the resolver that really answers, run nslookup whoami.akamai.net and look up the address it returns. If you are choosing a public resolver, our test found that Cloudflare's 1.1.1.1 passed none of your IP on to websites, Google passed your /24, and Google, Cloudflare and AdGuard all checked DNSSEC signatures properly. To see which resolvers your lookups reach right now, including through a VPN, run our DNS leak test.

Frequently asked questions

How do I find my DNS server on Windows?

Open Command Prompt and run ipconfig /all. Look for the DNS Servers line under your active adapter. In PowerShell, Get-DnsClientServerAddress lists the DNS servers for every adapter.

How do I find my DNS server on a Mac?

Open System Settings, choose Network, select your connection, click Details and open the DNS tab. In Terminal, scutil --dns | grep nameserver lists every resolver the Mac is using.

Why does my DNS server show as 192.168.1.1?

That is your router. It receives your lookups and forwards them to the real resolver, usually your internet provider's. To see which resolver is really answering, run nslookup whoami.akamai.net and look at the address in the answer.

Is it safe to change my DNS server?

Yes. It only changes who answers your lookups. Popular choices are Cloudflare (1.1.1.1), Google (8.8.8.8) and Quad9 (9.9.9.9). Keep a note of the old settings so you can switch back if a work or school network needs its own DNS.

Which DNS server is the most private?

In our test, Cloudflare's 1.1.1.1 did not pass any part of your IP address on to the websites you look up, while Google Public DNS passed on the first three parts (your /24). Quad9 documents that 9.9.9.9 does not send it either. All of them still see your lookups, so read each provider's logging policy.

Does a VPN change my DNS server?

A good VPN does, routing your lookups to its own resolvers through the tunnel. If it does not, your provider can still see every site you visit. A DNS leak test shows which resolvers your lookups really reach.

What is DNS over HTTPS?

It sends your DNS lookups inside normal encrypted HTTPS traffic, so your internet provider and anyone on the Wi-Fi cannot read or change them. Firefox, Chrome, Edge, Windows 11, iPhone and Android all support it.

Sources

  1. Google Public DNS: EDNS Client Subnet, Google
  2. 1.1.1.1 privacy policy and EDNS Client Subnet, Cloudflare
  3. Quad9 service addresses and features, Quad9
  4. AdGuard DNS public servers, AdGuard
  5. RFC 7871: Client Subnet in DNS Queries, IETF
  6. RFC 8484: DNS Queries over HTTPS (DoH), IETF

Cite this article

“In a test on 23 October 2026, Google Public DNS passed the first three parts of the user's IP address (a /24 subnet) on to authoritative DNS servers, while Cloudflare's 1.1.1.1 passed none. Google, Cloudflare and AdGuard DNS all refused the deliberately broken DNSSEC test domain dnssec-failed.org.”

Outline Technologies, “What Is My DNS Server? How to Find It on Any Device”, whatismyip.technology, October 23, 2026. https://whatismyip.technology/blog/what-is-my-dns-server

Free Tools

Test your network now

Everything discussed in this post can be tested for free. No account required.

Published by Outline Technologies · whatismyip.technology