DNS, the Domain Name System, translates domain names like example.com into the IP addresses computers actually use. When DNS breaks, your internet looks dead — even though your connection is fine. You can reach IP addresses directly, but domain names will not resolve.
The fix is usually fast. If you only do one thing, flush your DNS cache and switch to a public resolver like 1.1.1.1. Those two steps fix the majority of DNS failures in under two minutes.
In this guide you will learn how to fix DNS issues on Windows and Mac, how to diagnose whether the fault is your device, your router, or your ISP, and the exact commands and settings for each platform.
What Does “DNS Server Not Responding” Mean?
“DNS server not responding” — or “Your computer appears to be correctly configured, but the device or resource (DNS server) is not responding” — means your device cannot get answers from the DNS server it uses.
The root cause can sit anywhere in the resolution chain: your local stub resolver, the recursive resolver at your ISP, an upstream authoritative server, or a misconfigured network device between you and any of them.
Common DNS error codes and what they mean:
| Error | Where you see it | What it means |
|---|---|---|
| DNS server not responding | Windows, all browsers | Windows diagnostics found your DNS server is unreachable |
| DNS_PROBE_FINISHED_NXDOMAIN | Chrome | The DNS server said the domain does not exist (NXDOMAIN = non-existent domain) |
| DNS_PROBE_FINISHED_BAD_CONFIG | Chrome | Your DNS configuration is wrong, often a bad DNS server address |
| ERR_NAME_NOT_RESOLVED | Chrome | The domain name could not be resolved to an IP address |
| Server IP address could not be found | Chrome | Same as NXDOMAIN — the browser asked for an IP and got no answer |
| DNS server might be unavailable | Windows Network Diagnostics | Your DNS server is unreachable or not responding |
Diagnose First: Is It DNS, or Is It Your Connection?
Before touching any settings, run a quick diagnostic to confirm DNS is actually the failure point and not general connectivity.
On Windows, open Command Prompt and run:
ping 8.8.8.8
nslookup example.com
On Mac, open Terminal and run:
ping -c 4 8.8.8.8
dig example.com
How to read the results:
- If ping 8.8.8.8 succeeds but nslookup example.com fails, DNS resolution is definitively the problem. Your connection works, DNS does not.
- If ping 8.8.8.8 also fails, the issue is deeper — likely routing or physical connectivity — and DNS is a symptom, not the cause.
- If nslookup example.com fails but nslookup example.com 1.1.1.1 works, your default DNS server is broken. Switch to a public resolver.
Find out which DNS server your device is using:
- Windows: run ipconfig /all and look for “DNS Servers” under your active adapter.
- Mac: run scutil –dns | grep nameserver in Terminal.
If the address is your router, for example 192.168.1.1, the router is relaying DNS for you. Then test name lookups against that server and against a public resolver:
nslookup example.com
nslookup example.com 1.1.1.1
nslookup example.com 8.8.8.8
On Windows PowerShell, Resolve-DnsName example.com -Server 1.1.1.1 does the same with clearer output, and Test-NetConnection 1.1.1.1 -Port 53 checks whether DNS traffic can leave your network at all.
Work out how widespread the problem is:
- Only one site fails: check for a typo, try Incognito mode, and check whether the site works on mobile data. If only one site fails with “Non-existent domain”, that domain’s own DNS is the problem, not yours.
- Every site fails: your router, your DNS server, or your ISP is the problem. Restart the router and change DNS.
- Only fails in Chrome: Chrome’s cache or secure DNS setting is the problem. Clear Chrome’s host cache.
- Works on mobile data but not on Wi-Fi: your home network or ISP DNS is the problem.
Fix 1: Flush Your DNS Cache
Your operating system caches DNS lookups to speed up repeat visits, and stale cached records cause failures even when the domain works fine elsewhere. Flushing the cache forces your system to obtain fresh DNS information.
On Windows, open Command Prompt and run:
ipconfig /flushdns
You should see: “Successfully flushed the DNS Resolver Cache.” On current Windows 10 and 11, ipconfig /flushdns works in an ordinary Command Prompt.
On Mac, open Terminal and run:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
You will not see any output on success. That is normal. This command works on macOS Ventura, Sonoma, Sequoia, and Tahoe, as well as Monterey, Big Sur, and Catalina. On Mojave and earlier, use sudo killall -HUP mDNSResponder alone.
On Linux, for systemd-based systems, run:
sudo resolvectl flush-caches
Chrome has its own internal DNS cache, separate from the operating system. Navigate to chrome://net-internals/#dns and click Clear host cache. Then go to chrome://net-internals/#sockets and click Flush socket pools.
Fix 2: Restart Your Router Properly
Routers often cache DNS too, and a hung DNS relay in the router is a common cause of “DNS server not responding”.
Unplug the router from the wall — a soft reboot via the button often cycles too quickly — wait 30 seconds, then plug it back in. Wait for it to fully restart before testing again. Restart your computer as well, so it picks up a fresh DHCP lease and DNS configuration.
Fix 3: Switch to a Public DNS Server
If your ISP’s DNS servers are slow, down, or filtering domains, switching to a reliable public resolver bypasses the problem entirely. This is often the most impactful long-term change, and public DNS servers have global infrastructure with near-perfect uptime.
| DNS Provider | Primary | Secondary | Best for |
|---|---|---|---|
| Cloudflare | 1.1.1.1 | 1.0.0.1 | Privacy, and consistently the fastest globally in independent benchmarks |
| Google Public DNS | 8.8.8.8 | 8.8.4.4 | Speed and reliability, but Google logs queries |
| Quad9 | 9.9.9.9 | 149.112.112.112 | Security — blocks known malicious domains |
| Cloudflare Family | 1.1.1.3 | 1.0.0.3 | Malware and adult content filtering |
| OpenDNS | 208.67.222.222 | 208.67.220.220 | Filtering and parental controls |
Cloudflare 1.1.1.1 consistently measures the lowest global average query latency in independent benchmarks, and Cloudflare does not log queries. Google Public DNS is reliable but Google logs queries, anonymised after 24 to 48 hours. Quad9 also blocks known malicious domains, which makes it a good choice if you want security filtering.
To change DNS on Windows 11:
- Open Settings, then Network and internet, and pick Wi-Fi or Ethernet, whichever you are connected with.
- Find DNS server assignment and click Edit.
- Switch from Automatic to Manual and turn on IPv4.
- Enter Preferred DNS 1.1.1.1 and Alternate DNS 1.0.0.1.
- Click Save.
On Windows 10, which has no separate DNS option in Settings: press Win + R, run ncpa.cpl, right-click your adapter, choose Properties, select Internet Protocol Version 4 (TCP/IPv4), choose Properties, select “Use the following DNS server addresses”, and enter 1.1.1.1 and 1.0.0.1.
To change DNS on Mac:
- Open System Settings, then Network, then Wi-Fi or your active connection.
- Click Details next to your connected network.
- Click DNS in the sidebar.
- Click the plus button and add 1.1.1.1, then click plus again and add 1.0.0.1, and 2606:4700:4700::1111 if you use IPv6.
- Remove old DNS entries and click OK.
To change DNS for every device at once, set it in your router’s settings instead of on each device. Look for the DNS or WAN settings in your router’s admin page.
Fix 4: Flush DNS and Renew Your IP
On Windows, you can flush the DNS cache and renew your IP address together, which helps if DHCP has assigned stale configuration.
Open Command Prompt as administrator and run:
ipconfig /flushdns
ipconfig /release
ipconfig /renew
Optionally run netsh winsock reset and restart, which resets network socket settings. On Mac, go to System Settings, Network, pick your connection, click Details, then TCP/IP, then Renew DHCP Lease.
Fix 5: Disable VPN, Proxy, and Security Extensions
A VPN, proxy, or security extension can intercept DNS and break it. Temporarily disable your VPN, proxy, and browser extensions, then retry. If the site loads, the VPN or extension is the problem — update it, change its DNS settings, or switch to a different one.
Check Chrome’s secure DNS setting as well. Chrome can use DNS-over-HTTPS, which bypasses your system DNS. If your system DNS is fixed but Chrome still fails, check Chrome’s secure DNS setting under Settings, Privacy and security, Security, and try turning it off to test.
Fix 6: Check Your Hosts File
The hosts file can override DNS. Malware and some ad-blocking tools edit it. A bad entry in the hosts file can send a domain to the wrong IP, or to nowhere.
On Windows, open C:\Windows\System32\drivers\etc\hosts in Notepad as administrator. On Mac, open /etc/hosts in Terminal with sudo nano /etc/hosts. Remove lines mentioning the site unless you added them deliberately. A clean hosts file should only have localhost entries.
Fix 7: Update or Reinstall Network Drivers
On Windows, open Device Manager, expand Network adapters, right-click your Wi-Fi or Ethernet adapter, and choose Update driver. If updating does not help, uninstall the adapter and restart — Windows will reinstall it.
The Windows DNS Client service, Dnscache, can also get into a hung state. Restart it from Services, or restart your computer. On Mac, the mDNSResponder process can consume excessive memory and stop responding. Restarting your Mac refreshes it.
Fix 8: Reset Network Settings
If nothing else works, reset your network settings. This reinstalls network adapters and restores default network configuration.
On Windows 11, go to Settings, Network and internet, Advanced network settings, Network reset. This will remove all network adapters and reinstall them, and you will need to reconnect to Wi-Fi and re-enter the password.
On Windows, you can also reset the network stack from Command Prompt as administrator:
netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew
ipconfig /flushdns
Then restart your computer.
On Mac, go to System Settings, Network, select your connection, click Details, then TCP/IP, and set “Configure IPv6” to “Link-local only” if IPv6 is causing issues. Disabling IPv6 entirely is sometimes suggested, but it is a workaround, not a fix — try it only to test whether IPv6 is the cause.
Fix 9: Fix DNS_PROBE_FINISHED_NXDOMAIN
DNS_PROBE_FINISHED_NXDOMAIN means your browser asked a DNS server for a website’s IP address and was told the domain does not exist.
For visitors, the quick fix in three steps:
- Check the address for typos, then reload in an Incognito window.
- Flush your DNS cache — ipconfig /flushdns on Windows, sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder on macOS.
- Switch your DNS server to 1.1.1.1 or 8.8.8.8, and turn off any VPN or proxy.
If the site works on mobile data but not on Wi-Fi, the problem is your network or ISP DNS, not the domain. Test on mobile data to see whether the problem is your network or the domain.
For site owners, if your own domain triggers NXDOMAIN, check your domain registration, nameservers, A records, and propagation. A domain that has expired, or whose nameservers point to the wrong place, will return NXDOMAIN for everyone. Check your registrar and DNS host, and allow up to 48 hours for propagation after a change.
How to Verify Your DNS Is Working
After applying a fix, use these commands to confirm DNS is resolving correctly.
On Windows and Mac:
nslookup google.com
On Linux:
dig google.com
If nslookup google.com returns an IP address, DNS is working. If it still fails, try nslookup google.com 1.1.1.1. If that works but the default fails, your default DNS server is still the problem — switch to a public resolver and check your router.
When to Call Your ISP
Call your ISP if:
- Every device on your network fails, and switching to a public DNS server does not help
- ping 8.8.8.8 fails, which means the problem is routing or connectivity, not DNS
- Your router cannot get a WAN IP address, or the modem lights show no connection
- The problem started after a storm, an outage, or maintenance in your area
Before you call, note the results of ping 8.8.8.8, nslookup example.com, and nslookup example.com 1.1.1.1. That tells the ISP whether the fault is DNS or connectivity, and saves you an hour on the phone.
Frequently Asked Questions
What is the fastest fix for DNS server not responding?
Start by flushing your DNS cache — on Windows run ipconfig /flushdns, on Mac run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder — then switch to a public DNS server such as 1.1.1.1 or 8.8.8.8. Those two steps fix the majority of DNS failures in under two minutes.
Why does DNS keep failing on my Wi-Fi?
The most common causes are a hung DNS relay in your router, your ISP’s DNS servers being slow or down, or a VPN or security extension intercepting DNS. Restart the router, switch to a public DNS server in your router’s settings, and test with the VPN disabled.
Is 1.1.1.1 or 8.8.8.8 better?
Cloudflare 1.1.1.1 is consistently the fastest globally in independent benchmarks, and Cloudflare does not log queries. Google 8.8.8.8 is reliable but Google logs queries, anonymised after 24 to 48 hours. For privacy, use 1.1.1.1. For reliability, either works. Quad9 9.9.9.9 is the best choice if you want security filtering.
How do I flush DNS on Windows 11?
Open Command Prompt and run ipconfig /flushdns. You should see “Successfully flushed the DNS Resolver Cache.” On current Windows 10 and 11, it works in an ordinary Command Prompt, without administrator rights.
How do I flush DNS on Mac?
Open Terminal and run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. You will not see any output on success. That is normal. This works on macOS Ventura, Sonoma, Sequoia, and Tahoe.
What does DNS_PROBE_FINISHED_NXDOMAIN mean?
It means your browser asked a DNS server for a website’s IP address and was told the domain does not exist. Check for typos, flush your DNS cache, switch to a public DNS server, and turn off any VPN or proxy. If you own the domain, check your registration, nameservers, and A records.
Conclusion: How to Fix DNS Issues on Windows and Mac
To fix DNS issues on Windows and Mac, diagnose first, then fix in order: flush your DNS cache, restart your router, switch to a public DNS server such as 1.1.1.1 or 8.8.8.8, disable VPN and proxy to test, check your hosts file, update network drivers, and reset network settings if nothing else works.
The two steps that fix most DNS failures are flushing the cache and switching to a public resolver. They take under two minutes, and they work on Windows, Mac, and Linux.
If ping 8.8.8.8 works but nslookup fails, it is DNS. If ping 8.8.8.8 fails too, it is your connection — call your ISP.
For more network troubleshooting, read our guide on how to fix CORS errors, and for the security side of network issues, read our guide on how to protect your network from phishing attacks.
Related reading on our sister site, The Tribes World: Khasi & Garo Tribes of Meghalaya — https://thetribesworld.com/khasi-garo-tribes-meghalaya/
