To find your DNS server, use system network commands like ipconfig /all on Windows, ipconfig -a on macOS, or systemd-resolve --status on Linux. These tools display the IP addresses assigned to your device's DNS servers.
DNS servers translate website names like google.com into IP addresses your device uses to connect. Your router typically assigns these addresses automatically via DHCP. Knowing your DNS server helps troubleshoot connectivity issues, improve privacy, or switch to faster public DNS services like Cloudflare (1.1.1.1) or Google Public DNS (8.8.8.8).
Most users don't manually set DNS servers. They rely on their ISP or router to assign them. But if you're experiencing slow loading times, blocked sites, or want to improve security, finding your current DNS server is the first step.
Your device queries the DNS server listed in its network configuration whenever you enter a web address. The server responds with the correct IP address, enabling connection. This process happens in milliseconds and occurs behind the scenes.
If your DNS server fails or returns incorrect data, websites won't load or may redirect to malicious pages. A misconfigured DNS setting can cause intermittent outages even when your internet connection appears stable.
For example, if you visit a site and get a "DNS_PROBE_FINISHED_NXDOMAIN" error in Chrome, checking your DNS server reveals whether the issue lies with your network settings or the server itself.
Use the following commands based on your operating system:
| Operating System | Command | Expected Output |
|---|---|---|
| Windows | ipconfig /all |
Look for "DNS Servers" under your active network adapter. Example: 192.168.1.1 |
| macOS | ipconfig -a |
Under "Ethernet" or "Wi-Fi," check "DNS Servers." Example: 10.0.1.1 |
| Linux (Ubuntu/Debian) | systemd-resolve --status |
Find "DNS Servers" in the output. Example: 8.8.8.8 |
On mobile devices, go to Settings > Wi-Fi > select your network > tap "IP Settings" or "Configure IP." The DNS field shows the assigned server. On Android, this may appear as "DNS 1" and "DNS 2."
For advanced users, use nslookup or dig to verify DNS resolution. Run nslookup google.com in a terminal to see which DNS server responded. This confirms the actual server handling your request, not just the configured one.
Many assume their DNS server is always the one provided by their ISP. That's often true, but not guaranteed. Some ISPs route traffic through regional DNS caches that may be slow or unreliable.
A key distinction: your router's IP address (like 192.168.1.1) is not your DNS server. The router manages network traffic but may forward DNS requests to external servers. You must check the DNS field separately.
Another error: confusing DNS server with gateway. The gateway (usually 192.168.1.1) routes traffic between your local network and the internet. The DNS server translates domain names. Both are required, but they serve different functions.
For example, during a network outage, a device may still have a valid gateway but fail to resolve domains because the DNS server is unreachable. Checking both helps isolate the root cause.
I once diagnosed a home network where videos wouldn't buffer properly. All devices showed full signal strength. Running ipconfig /all revealed the DNS server was 10.0.0.1 - a local router cache that had stopped responding.
Changing the DNS server to 1.1.1.1 via router settings restored speed within 10 seconds. The fix wasn't about bandwidth or hardware - it was about replacing a broken DNS resolver.
This illustrates why knowing your DNS server matters. You can't fix what you don't know exists.
Switching to public DNS services improves performance and privacy. Cloudflare's 1.1.1.1 blocks tracking and advert-based DNS poisoning. Google Public DNS (8.8.8.8) offers low latency and high reliability.
According to Cloudflare's official documentation, their DNS service resolves queries in under 10 milliseconds globally. Google's DNS reports 99.99% uptime over the past five years, per Google's public DNS page.
To change your DNS server, access your router's admin panel (usually at 192.168.1.1), go to Network Settings, and update the DNS fields. Save and restart the router.
Always verify changes with nslookup or online tools like dnsleaktest.com to confirm your DNS queries aren't being intercepted or rerouted.
Use these methods to identify your DNS server quickly. Whether troubleshooting or enhancing privacy, the steps are consistent across platforms and require no special software.