Error fix · Developer errors

DNS Server Not Responding: Fix Windows, macOS and Linux Lookups

Fix "The DNS server isn't responding" and nslookup "DNS request timed out". Test the resolver with dig and nslookup, switch DNS, flush caches, and check firewalls.

Error messageYour computer appears to be correctly configured, but the device or resource (DNS server) is not responding.

By SiteDownCheck Editorial · Updated November 18, 2026 · 4 min read

This is the message Windows Network Diagnostics shows when a page will not load, and its shorter form "The DNS server isn't responding" appears in browsers and on routers. Developers meet the same problem as:

;; connection timed out; no servers could be reached
DNS request timed out.
    timeout was 2 seconds.
*** Can't find server name for address 192.168.1.1: Timed out

It means your machine asked its configured resolver to look up a name and got no reply in time. Pings to an IP address such as 1.1.1.1 usually still work, which is the giveaway: the network is up, but name resolution is not. A timeout is different from an error code. A resolver that answers NXDOMAIN or SERVFAIL is responding, and those are covered in NXDOMAIN vs SERVFAIL vs REFUSED.

Step 1: confirm it is DNS and not the whole network

ping -c 2 1.1.1.1          # Windows: ping -n 2 1.1.1.1
ping -c 2 example.com

If the IP ping works and the name ping fails, it is DNS. If both fail, check cable, Wi-Fi, router, VPN or captive portal first.

Step 2: see which resolver you are using

  • Windows: ipconfig /all and look at "DNS Servers."
  • macOS: scutil --dns | grep nameserver
  • Linux with systemd-resolved: resolvectl status
  • Other Linux: cat /etc/resolv.conf

A value like 192.168.1.1 is your router, which forwards to your ISP. A value like 127.0.0.53 is the local stub resolver on Ubuntu. A wrong or leftover value (for example a VPN's internal DNS server after you disconnected) is a common cause.

Step 3: query a public resolver directly

nslookup example.com 1.1.1.1
dig example.com @8.8.8.8

If these work but the default resolver does not, the problem is the default resolver. Use the DNS Checker from outside to confirm the domain itself resolves worldwide.

Step 4: switch the resolver

Set DNS manually on the adapter or, better, on the router so every device benefits. Public options include Cloudflare (1.1.1.1 and 1.0.0.1), Google (8.8.8.8 and 8.8.4.4) and Quad9 (9.9.9.9). On Windows, open the adapter's IPv4 properties and enter the servers. On Ubuntu, resolvectl dns eth0 1.1.1.1 8.8.8.8 sets them for the current session; make it permanent through NetworkManager or netplan.

Step 5: flush caches and restart the stack

ipconfig /flushdns                                   # Windows
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder   # macOS
sudo resolvectl flush-caches                         # Linux, systemd-resolved

On Windows you can also run netsh winsock reset and netsh int ip reset from an elevated prompt, then reboot. Restart the router if several devices fail at once. A router's DNS forwarder hangs more often than most people expect.

Step 6: look for something blocking port 53

DNS uses UDP port 53, and TCP port 53 for large answers and zone transfers. Check:

  • Local firewall or security suite with DNS filtering. Disable it briefly to test.
  • VPN clients that rewrite DNS settings or enforce their own servers.
  • Corporate or hotel networks that intercept DNS or require a login page first.
  • IPv6 resolver advertised but unreachable. Try disabling IPv6 on the adapter temporarily to test whether that is the issue.

From a server you control, test whether a remote DNS server is reachable:

dig +tcp example.com @1.1.1.1
dig +time=3 +tries=1 example.com @192.168.1.1

The Port Checker can test TCP 53 on a public server you run, but it cannot test UDP.

Step 7: if you run the DNS server

A self-hosted resolver (BIND, Unbound, dnsmasq, Pi-hole, Windows DNS) that does not respond may simply be stopped, bound to the wrong interface, out of file descriptors or blocked by a firewall. Check:

sudo ss -lunp 'sport = :53'
sudo systemctl status unbound      # or named, dnsmasq, pihole-FTL

Make sure it listens on the address clients use, that its upstream forwarders respond, and that cloud security groups allow UDP and TCP 53. If a single domain times out while others resolve, the authoritative servers for that domain are probably broken; see lame delegation and DNS SERVFAIL explained.

How to verify

Run nslookup example.com and dig example.com without specifying a server, so the default resolver is tested, and expect an answer within a fraction of a second. Then load a website in the browser. If you manage a server, add an Uptime Monitor so you hear about DNS failures before users do. For a site that is unreachable from certain places only, the Website Health Check helps separate DNS from server problems.

Next steps

FAQ

Why does ping to an IP work but not to a name?

Names need DNS to be translated to addresses first. If DNS is broken, the IP still works, so the network itself is fine.

Should I use my router's DNS or a public one?

Either works. A public resolver is a good test and often a good fix when the ISP's resolver is flaky. Privacy policies differ, so pick one you trust.

Does flushing DNS fix a non-responding server?

Only if the problem is a bad cached entry. If the resolver is unreachable, change or restart the resolver instead.

Why does it happen only on VPN?

The VPN pushes its own DNS servers, which might be reachable only inside the tunnel or may be blocked. Check the VPN's DNS settings or split tunneling.

Get notified when this fix updates

Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.

This page is general information written by our editorial team and updated when documentation changes. Servers and providers differ, so test changes safely first. See our editorial policy and disclaimer.