How to Find Your Primary and Secondary DNS Servers

On Windows, open Command Prompt, run ipconfig /all, and read the DNS Servers lines under the adapter you are using. The first address is your primary DNS server and the next one is your secondary. On a Mac, open System Settings > Network, pick your connection, then select Details > DNS.

These steps cover Windows 11 and Windows 10, Macs that use System Settings, iPhone and iPad, Android phones, Chromebooks, common Linux desktops, and home routers. You only need to look; nothing here changes your connection.

What Primary and Secondary DNS Mean

DNS (Domain Name System) turns a name like solveyourtech.com into the numeric IP address your device connects to. The DNS server, also called a resolver, is the computer that answers those lookups for you.

Your device keeps an ordered list of DNS servers. The first one is the primary, and your device asks it first. The second is the secondary, which your device tries when the primary does not answer. Some connections list only one address, and some list more than two. Neither address speeds up your connection by itself; the secondary is there as a backup.

An address with colons, such as 2001:4860:4860::8888, is an IPv6 DNS server, not a secondary IPv4 server. If you need to report your DNS servers to support staff, list the IPv4 and IPv6 addresses separately.

Find Your DNS Servers on Windows With ipconfig

This method works the same on Windows 11 and Windows 10, and it shows the servers in use even when they were assigned automatically.

  1. Connect to the Wi-Fi or Ethernet network you want to check.
  2. Open Start, type Command Prompt, and open it. You don’t need to run it as an administrator.
  3. Type ipconfig /all and press Enter. Several sections of text appear, one per network adapter.
  4. Find the section for your current connection. Look for Wireless LAN adapter Wi-Fi or Ethernet adapter Ethernet; names vary by PC.
  5. Read DNS Servers in that section. The first address is the primary. Any address printed on the next line, under the first, is the secondary.
Command Prompt ipconfig /all output with the DNS Servers lines for the active adapter
Read DNS Servers in the active adapter section, including any address on the following line. These addresses are reserved examples, and the MAC address is hidden.

Microsoft’s ipconfig reference documents the command and its /all option. The output contains several kinds of addresses, so copy the values beside DNS Servers rather than those beside IPv4 Address, DHCP Server, or Default Gateway. To learn what the IPv4 Address line means, read about finding your IP address on Windows 11.

For example, if an adapter’s DNS Servers field lists two addresses across two lines, keep both and note the adapter name. If another section says Media disconnected, its settings don’t apply to your current network.

Use PowerShell for a Shorter DNS List

Open Windows PowerShell or Terminal from Start and run Get-DnsClientServerAddress.

The output is a table grouped by interface and address family. Find the InterfaceAlias that matches your connection, then read its ServerAddresses. The addresses appear in order, so the first one is the primary. IPv4 and IPv6 entries appear on separate rows, and one of them can be empty.

To check one interface, put its alias (name) in the command: Get-DnsClientServerAddress -InterfaceAlias "Wi-Fi". To see only IPv4 servers, add -AddressFamily IPv4.

Microsoft’s Get-DnsClientServerAddress reference explains both filters. Use the name from your own output; a computer’s wireless interface is not necessarily named Wi-Fi.

Check DNS in Windows Settings

On Windows 11, open Settings > Network & internet.

  • Wi-Fi: select Wi-Fi, then Hardware properties.
  • Ethernet: select Ethernet.

Scroll to IPv4 DNS servers and IPv6 DNS servers. The first address listed is the primary server. DNS server assignment shows Automatic (DHCP) when the network supplies the servers, or Manual when someone typed them in. Leave the Edit button alone if you only want to look. If you want different servers, here’s how to change your DNS server in Windows 11.

To see every adapter on one page, go to Settings > Network & internet > Advanced network settings > Hardware and connection properties.

On Windows 10, open Settings > Network & Internet, select Wi-Fi or Ethernet, select your connection, and scroll to Properties to find the IPv4 and IPv6 DNS servers. Windows 10 reached end of support on October 14, 2025, so the menus won’t change further, but the ipconfig /all method above still works on it.

Use the Network Connections Details Window

This older window works on both versions and shows the servers in use.

  1. Press Windows + R, type ncpa.cpl, and press Enter. The Network Connections window opens.
  2. Double-click your connected Wi-Fi or Ethernet adapter. A status window opens.
  3. Select Details.
  4. Read IPv4 DNS Server and IPv6 DNS Server. The first address is the primary.
  5. Select Close twice.

Inspect the Older IPv4 Properties Dialog

From the same Network Connections window (or Control Panel > Network and Internet > Network and Sharing Center > Change adapter settings), right-click the connected adapter, choose Properties, select Internet Protocol Version 4 (TCP/IPv4), and open its Properties.

If Use the following DNS server addresses is selected, the Preferred DNS server is your primary and the Alternate DNS server is your secondary. If Obtain DNS server address automatically is selected, the blank fields do not show the servers in use; use ipconfig /all or the Details window instead. Automatic servers come from the network’s DHCP service, which is usually your router, rather than directly from your internet provider. Select Cancel to leave the connection unchanged.

Find Your DNS Servers on a Mac

  1. Open the Apple menu > System Settings.
  2. Select Network in the sidebar.
  3. Select the network service you are using, such as Wi-Fi or Ethernet.
  4. Select Details, then DNS in the sidebar of the window that opens. You may need to scroll.
  5. Read the DNS Servers list. The top entry is the primary. Gray entries were assigned automatically by the network.
Mac Network Details window with the DNS pane selected and the DNS Servers list
Read the addresses in DNS Servers. These are sample addresses.
  1. Select Cancel if you only wanted to look.

Apple’s DNS settings guide distinguishes DNS Servers from Search Domains. Server entries are IP addresses; search domains are a separate setting. On older Macs with System Preferences, the path is Network > Advanced > DNS.

To check from Terminal, run scutil --dns. Look at resolver #1 for the nameserver[0] and nameserver[1] lines. A VPN can add its own resolver entries here.

Find Your DNS Servers on iPhone or iPad

  1. Open Settings > Wi-Fi.
  2. Tap the info (i) button next to your connected network.
  3. Scroll down and tap Configure DNS.
  4. Read the addresses under DNS Servers, in order. If Automatic is checked, they came from the network.
iPhone Configure DNS screen showing Automatic and the DNS Servers list
Automatic uses the Wi-Fi network’s DNS servers. These are sample addresses.
  1. Tap Back without changing anything if you only want to look.

These settings apply to that Wi-Fi network only. Cellular connections don’t show a DNS list on the iPhone.

Find Your DNS Servers on Android

Menu names vary by phone maker and Android version.

  • Pixel and similar phones: open Settings > Network & internet > Internet, tap the gear next to your Wi-Fi network, and read DNS under Network details.
  • Samsung Galaxy: open Settings > Connections > Wi-Fi, tap the gear next to your network, and tap View more if needed. Some models show only the IP address and not DNS.

Some guides suggest switching IP settings from DHCP to Static to reveal DNS fields. Avoid that just to look: it can drop the connection and the fields may hold suggested values rather than the servers in use. Check the router instead.

Also check Private DNS in Settings. Google’s Private DNS help page explains the Off, Automatic, and Private DNS provider hostname choices. When a provider hostname is set, your phone sends lookups to that provider instead of the servers listed for the network. If you need the phone’s own IP address instead, you can find your Wi-Fi IP address on an Android phone.

Find Your DNS Servers on a Chromebook

Select the time at the bottom right, open the Wi-Fi menu, and select your network to open its details. Open the Network section and look under Name servers. Automatic name servers means the network supplies them; Google name servers or Custom name servers means someone chose them. Google’s Chromebook DNS help covers these options.

Find Your DNS Servers on Linux

Open Terminal and try these in order:

  • resolvectl status lists the Current DNS Server and DNS Servers for each network link on systems that use systemd-resolved, which includes Ubuntu and Fedora.
  • nmcli dev show | grep DNS lists the servers NetworkManager received for each device.
  • cat /etc/resolv.conf shows nameserver lines. If the only entry is 127.0.0.53, that is the local systemd-resolved stub, not your real server, so use resolvectl status. The systemd-resolved documentation describes that stub address.

Find the DNS Servers on Your Router

Your devices often list the router’s own address, such as 192.168.1.1 or 192.168.0.1, as their DNS server. That means the router forwards lookups to the real servers. To see those, sign in to the router:

  1. Find your router’s address. On Windows it is the Default Gateway in ipconfig /all. It is often printed on the router’s label too.
  2. Open that address in a browser, or open the router maker’s app, and sign in with the admin password.
  3. Open the Internet, WAN, or Status page.
  4. Read the Primary DNS and Secondary DNS entries. Labels vary by brand.

These are usually the servers your internet provider assigned. Some routers also have a separate DNS field in their DHCP or LAN settings that controls what they hand to your devices. The sign-in pages are the same ones used to update your router firmware.

Recognize Common DNS Addresses

If you see one of these, someone chose a public DNS service instead of your provider’s servers.

Primary Secondary Service
8.8.8.8 8.8.4.4 Google Public DNS
1.1.1.1 1.0.0.1 Cloudflare
9.9.9.9 149.112.112.112 Quad9
208.67.222.222 208.67.220.220 OpenDNS (Cisco)

An address that starts with 192.168, 10., or 172.16 through 172.31 is a private address, which usually means your router or another local device is answering.

Confirm Which Server Answers

To see the server that actually responds, open Command Prompt or Terminal and run nslookup solveyourtech.com. The first two lines, Server and Address, show the default DNS server your device used. Microsoft’s nslookup reference covers the command. If that address differs from your list, a VPN, security app, or encrypted DNS setting may be handling lookups.

If the Result Is Missing or Confusing

  • Too many adapters: Match the connected interface before copying values. A VPN or virtual adapter can have its own entry.
  • No useful entry: Make sure the connection you want is active, then run the command again. In PowerShell, check both address-family rows instead of stopping at an empty one.
  • Only one address shows: Your network supplied only one server. That is normal on many home routers.
  • Different results on another network: Compare the same adapter on the same connection. Keep a note of the network and whether a VPN was connected when you checked.
  • Work or school device: Your organization may set DNS through device management. Ask its IT team before changing anything.
  • You need to edit Windows settings: First record the current values. The steps for changing adapter settings in Windows 11 show where the controls are and how to undo a change.

DNS Server Questions

Is ipconfig /displaydns the same thing?

No. It displays the DNS resolver cache, a list of names your PC looked up recently. Use ipconfig /all for the adapter’s server list. To override a single name on purpose instead, edit the hosts file in Windows 11.

Why is my DNS server my router’s address?

Your router is forwarding lookups. Sign in to the router and check its Internet or WAN page for the upstream primary and secondary servers.

Is a DNS server the same as a domain’s name servers?

No. Your DNS server answers lookups for your device. A domain’s name servers (NS records) hold that one website’s records. Running nslookup -type=NS example.com lists a domain’s name servers, which is a different task.

Do I need to change DNS to complete this guide?

No. Stop once you’ve written down the addresses for your connection. Don’t replace working settings with guesses.

Does a second DNS server guarantee uninterrupted internet access?

No. A secondary server helps if the primary stops responding, but it can’t fix a problem with your Wi-Fi, router, or internet service.