How to Find Your DNS Server on Windows and Mac
Finding your DNS server’s IP address on your PC or Mac device is easy. Below are simple step-by-step instructions for each device.
How to Find Your DNS Server IP Address on Windows
The quickest way to find your DNS server address on Windows is to:
- Open the Command Prompt by clicking ‘Start Menu’.
- Type cmd and press ‘Enter’.
- Type nslookup google.com and press ‘Enter’.
- You’ll see results that look like these:
Server: dns.google
Address: 8.8.8.8
Non-authoritative answer:
Name: google.com
Addresses: 2a00:1450:4009:815::200e
142.250.178.14
- The line starting “Addresses” will show your DNS server address. In the example above, it’s 8.8.8.8.
There is also another way to find our DNS server on Windows, however there’s more information to parse through.
- Open the Command Prompt by clicking ‘Start Menu’.
- Type cmd and press ‘Enter’.
- Type ipconfig/all and press ‘Enter’.
- If you’re connected to the internet via an Ethernet cable, in the ‘Ethernet adapter Ethernet’ section, look for the IP address(es) next to ‘DNS Servers’.
- If you’re connected to the internet via WiFi, in the ‘Wireless LAN adapter WiFi’ section, look for the IP address(es) next to ‘DNS Servers’.
- The first IP address will be for the primary DNS server. If there is a second address, it will be for the secondary DNS server.
How to Find Your DNS Server IP Address on Mac
The process to find your DNS address on macOS devices is very similar to the nslookup command line method on Windows.
- Open the Terminal by pressing Command Key + Space Bar.
- Type terminal and press ‘Enter’.
- Type nslookup google.com and press ‘Enter’.
- You’ll see results that look like these:
Server: dns.google
Address: 8.8.8.8
Non-authoritative answer:
Name: google.com
Addresses: 2a00:1450:4009:815::200e
142.250.178.14
- The “Addresses” line will display your DNS server address(es). In the example above, it’s 8.8.8.8.
Be aware that in many home networking configurations, you will likely see an IP address starting 192.168.X.X or 10.X.X.X. This will be your router’s IP address on your local network.
Your router’s IP address may differ from our tool’s DNS test results, which display the public IP address of the DNS servers that contacted our test platform.
If this is the case, it means the DNS server on your router has contacted one or more upstream DNS server(s), forwarding your request. Our tool displays the details of this upstream server.