Find Your Current DNS Server (Windows, Mac, Router)
In this article
To find the DNS server your computer is currently using, open your network settings: on Windows, run ipconfig /all in Command Prompt; on macOS, run scutil --dns in Terminal. The output shows the IP addresses of the DNS servers your device is actually querying, which may differ from the ones set in your router if you use a VPN or custom DNS.
in t | Finish time | min | 50 | 0 in d | Distance | km | 10 | 0 out pace | Average pace | min/km | t / d | 2 out speed | Average speed | km/h | d / (t / 60) | 2
Formula
The calculator works out your average pace and speed for a run, walk, or cycle. You enter the total time taken and the distance covered. The formulas are:
- Pace (min/km) = Total time (minutes) ÷ Distance (km)
- Speed (km/h) = Distance (km) ÷ (Total time (minutes) ÷ 60)
Variables: t = total time in minutes, d = distance in kilometers. Pace is expressed as minutes per kilometer; speed is kilometers per hour.
Worked Example
Using the default values: t = 50 minutes, d = 10 km.
- Pace = 50 ÷ 10 = 5.00 min/km
- Speed = 10 ÷ (50 ÷ 60) = 10 ÷ 0.8333 = 12.00 km/h
The calculator shows a pace of 5:00 min/km and a speed of 12.00 km/h.
How to Check Your DNS Server on Windows
Windows offers several ways to see the DNS servers your system is using:
- Open Command Prompt (cmd) and type
ipconfig /all. Look for the “DNS Servers” line under your active network adapter (Ethernet or Wi-Fi). - For a quicker view, type
nslookupand press Enter. The first two lines of output show the DNS server that answered the query (usually your local router or a configured DNS). - In PowerShell,
Get-DnsClientServerAddresslists DNS servers for all interfaces.
Note that if you have a VPN active, the DNS servers shown may belong to the VPN tunnel, not your local network.
How to Check on macOS
On a Mac, the most reliable command is scutil --dns in Terminal. It prints a list of DNS resolvers in order of priority. The first “nameserver” entry is the primary DNS server. You can also go to System Settings → Network → your active connection → Details → DNS to see the configured DNS servers.
If you want to see which DNS server actually answered a query, use dig example.com or nslookup example.com. The “SERVER” line in the output shows the IP address of the DNS server that responded.
How to Check on a Router
Your router itself has a DNS setting, usually found in the WAN or Internet section of its admin page. Log in to your router’s web interface (typically at 192.168.1.1 or 192.168.0.1) and look for “DNS” or “DNS Server”. Many routers use the ISP’s DNS by default, but you can change it to a public DNS like 8.8.8.8 (Google) or 1.1.1.1 (Cloudflare).
Remember: devices on your network often use the router as their DNS server. So even if your device shows 192.168.1.1 as its DNS, the router may be forwarding queries to an upstream DNS. To see the upstream DNS, check the router’s status page.
Common DNS Issues and How to Fix Them
If you suspect DNS problems, you might see errors like “DNS_PROBE_FINISHED_NXDOMAIN” or websites not loading. Common fixes include:
- Flush the DNS cache: on Windows,
ipconfig /flushdns; on macOS,sudo dscacheutil -flushcache. - Change your DNS server to a public one (e.g., 8.8.8.8, 1.1.1.1) to bypass your ISP’s DNS.
- Restart your router and modem to clear temporary glitches.
- Disable any VPN or proxy that may be overriding DNS.
If changing DNS doesn’t help, the issue might be with your network connection or the website itself.
Public DNS vs. ISP DNS
Your ISP’s DNS servers are often reliable but may be slower or log your browsing history. Public DNS providers like Google Public DNS (8.8.8.8, 8.8.4.4) and Cloudflare (1.1.1.1) are generally faster and offer more privacy. Some public DNS services also block malicious sites. However, using a public DNS means your queries go to a third party, so you trade one privacy concern for another.
For most users, the default DNS from your ISP works fine. If you experience slow website loading or frequent DNS errors, switching to a public DNS is a simple fix.
How to Change Your DNS Server
You can change DNS on your device or router:
- Windows: Settings → Network & Internet → Wi-Fi or Ethernet → your connection → Edit → change DNS to manual and enter the new addresses.
- macOS: System Settings → Network → your connection → Details → DNS → add new servers.
- Router: Log in to the admin page, find DNS settings, and enter the public DNS addresses.
Changing DNS on the router affects all devices on your network, which is often the easiest method.
Frequently Asked Questions
Why does my computer show a different DNS server than my router?
This can happen if you have a VPN, a proxy, or a manual DNS setting on your device. VPNs often route DNS through their own servers for privacy. Also, some routers use “DNS relay” so devices see the router’s IP as the DNS, but the router forwards to an upstream server.
What is the fastest public DNS server?
Speed varies by location and ISP. Google (8.8.8.8) and Cloudflare (1.1.1.1) are consistently fast globally. You can use tools like namebench or DNSPerf to test which is fastest for you, but for most users the difference is milliseconds.
Can I use 8.8.8.8 as my DNS on any device?
Yes, 8.8.8.8 (Google Public DNS) is a public IP address that works from any device with internet access. You can set it manually in your network settings. It’s a common choice for bypassing ISP DNS issues.
Does changing my DNS server improve security?
Some public DNS providers offer filtering of malicious domains (e.g., Cloudflare’s 1.1.1.2 blocks malware). However, DNS alone doesn’t protect against all threats. It’s one layer; keep your software updated and use a firewall.
How do I flush my DNS cache?
On Windows, open Command Prompt as administrator and type ipconfig /flushdns. On macOS, open Terminal and type sudo dscacheutil -flushcache (you may need to enter your password). This clears stored DNS entries, which can fix outdated IP addresses.