sodcalculator

10 Tech How-To

Find DNS Servers in Windows 11 (3 Ways)

Guide 10-59828 · Updated · Step by step

Knowing which DNS servers your Windows 11 PC is using helps you troubleshoot slow internet, verify your VPN or parental-control filter is active, or confirm you’ve switched to a faster resolver like Cloudflare or Google. This guide shows you three quick ways to see both the DNS servers your PC is currently using and the ones configured in your network adapter settings. No extra software is needed—everything is built into Windows 11.

What You’ll Need

  • A Windows 11 PC with an active network connection (Wi‑Fi or Ethernet).
  • Administrator rights are only required for one method (Command Prompt as admin), but the Settings and PowerShell methods work without them.
  • Basic familiarity with opening apps like Settings or Terminal is helpful.

Step-by-Step

Method 1: Using Windows Settings (Graphical)

  1. Press Win + I to open Settings.
  2. Click Network & internet in the left sidebar.
  3. Choose your connection type: Wi‑Fi or Ethernet.
  4. Click the connected network name (e.g., “HomeWiFi” or “Ethernet”).
  5. Scroll down to the DNS server assignment section. Here you’ll see whether DNS is set to Automatic (DHCP) or Manual.
  6. If it’s Manual, the DNS servers are listed. If it’s Automatic, Windows doesn’t show the actual IP addresses here—you’ll need to use one of the command-line methods below to see the active DNS servers.

Method 2: Using Command Prompt (Shows Active DNS)

  1. Click the Start button, type cmd, and press Enter to open Command Prompt.
  2. Type the following command and press Enter:
  3. ipconfig /all
  4. Look for the section that matches your active adapter (e.g., “Ethernet adapter Ethernet” or “Wireless LAN adapter Wi‑Fi”).
  5. Find the lines labeled DNS Servers. There may be one or more IP addresses listed—these are the DNS servers your PC is currently using.

Method 3: Using PowerShell (Shows Configured DNS)

  1. Right-click the Start button and select Terminal or Windows PowerShell.
  2. Type the following command and press Enter:
  3. Get-DnsClientServerAddress -AddressFamily IPv4 | Where-Object { $_.ServerAddresses } | Format-Table InterfaceAlias, ServerAddresses -AutoSize
  4. You’ll see a table listing each network interface and the DNS servers configured for it. If an interface shows no addresses, it’s using DHCP (automatic) DNS.

Common Mistakes

  • Looking at the wrong adapter: If you have both Wi‑Fi and Ethernet active, you might read the DNS servers from the disabled adapter. Always check the one that’s actually connected (the one with an IP address).
  • Confusing “automatic” with “no DNS”: When Settings shows “Automatic (DHCP),” it means your router is providing DNS—the actual IPs are hidden. Many users think this means no DNS is set, but it’s working fine.
  • Typing the command with extra spaces: Copy-paste the command exactly. A missing space or extra character can cause an error.
  • Forgetting to run as admin: The ipconfig /all command works without admin, but some other network commands (like ipconfig /flushdns) require it. For just viewing DNS, admin isn’t needed.

Tips

  • Use the quick check: If you just want the DNS servers for the active connection, run ipconfig /all and scroll to the adapter section. It’s the fastest method.
  • See IPv6 DNS too: The PowerShell command above filters for IPv4. To see IPv6 DNS servers, change -AddressFamily IPv4 to -AddressFamily IPv6 or omit the parameter entirely.
  • Check DNS from the router’s perspective: If you want to know what DNS your router is using, log into your router’s admin page (usually 192.168.1.1 or 192.168.0.1) and look under WAN or Internet settings.
  • Verify DNS is working: After changing DNS, use nslookup example.com to confirm resolution works and see which server answered.

Troubleshooting

I don’t see any DNS servers in ipconfig /all. This usually means your adapter is not connected or has no IP address. Check your Wi‑Fi or Ethernet connection and try again. If you’re using a VPN, the VPN adapter might be the one with DNS—look for “TAP” or “TUN” adapters.

Settings shows “Automatic (DHCP)” but I want to know the actual IPs. Use the Command Prompt method. If you need to see the DNS servers your router is handing out, check the router’s DHCP settings.

PowerShell returns an empty table. The command filters for interfaces that have at least one DNS server. If all are empty, your PC is using DHCP and hasn’t been assigned any static DNS—that’s normal. Run ipconfig /all to see the DNS servers from DHCP.

I changed DNS but it still shows the old IP. Windows caches DNS. Open Command Prompt as administrator and run ipconfig /flushdns, then check again. Also, make sure you changed the DNS for the correct adapter (Wi‑Fi vs. Ethernet).

There are multiple DNS servers listed—which one is being used? Windows tries them in order. The first one is the primary, the rest are fallbacks. You can test which one actually answers using nslookup and looking at the “Server” line.

Frequently Asked Questions

Q: What is the default DNS server in Windows 11?
A: By default, Windows 11 uses the DNS server provided by your router via DHCP. That’s usually your router’s IP (like 192.168.1.1) or your ISP’s DNS servers.

Q: Can I see DNS servers without using Command Prompt?
A: Yes, you can use PowerShell (Method 3) or check the network adapter properties in Settings, but Settings only shows the IPs if you’ve manually configured them. For the active DNS, Command Prompt is the most direct.

Q: Why does my DNS show a public IP like 8.8.8.8?
A: That means you or a previous configuration changed DNS to a public resolver, such as Google Public DNS (8.8.8.8) or Cloudflare (1.1.1.1). It’s common for speed or privacy.

Q: How do I change the DNS server in Windows 11?
A: Go to Settings > Network & internet > select your connection > click “DNS server assignment” > click “Edit” > switch from Automatic to Manual, then enter the preferred and alternate DNS IPs.

Q: Does flushing DNS affect my DNS server settings?
A: No. Flushing clears the local cache of resolved domain names, but it doesn’t change which DNS server you’re using.

Q: Can I see DNS servers for a specific adapter only?
A: Yes, in PowerShell you can add -InterfaceAlias "Wi-Fi" to the command to filter by adapter name. In Command Prompt, ipconfig /all shows all adapters, so just look at the correct section.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →