How to Fix ERR_CONNECTION_TIMED_OUT and DNS_PROBE_FINISHED_NXDOMAIN

Browser showing ERR_CONNECTION_TIMED_OUT and DNS_PROBE_FINISHED_NXDOMAIN errors

Quick answer: DNS_PROBE_FINISHED_NXDOMAIN means the domain name wasn't found in DNS; ERR_CONNECTION_TIMED_OUT means the server didn't answer in time. Test the site on another network (such as mobile data), switch your DNS to 1.1.1.1 or 8.8.8.8 and clear the DNS cache with ipconfig /flushdns. If the error happens for everyone, check that the domain is active and points to the right IP, and that the server and its firewall accept connections on ports 80 and 443.

Out of nowhere you try to open a site (maybe your own) and get ERR_CONNECTION_TIMED_OUT or DNS_PROBE_FINISHED_NXDOMAIN. The good news: most of the time it can be fixed in a few minutes with simple checks.

This guide shows how to find out whether the problem is your computer or phone, your router, DNS, the hosting server or the domain configuration, and how to fix each one.

What each error means

ERR_CONNECTION_TIMED_OUT

The browser found the server's address and tried to connect, but got no response in time. Possible causes: the server is down or overloaded, a firewall drops the connection, the domain points to an old IP, a network or routing problem, or something on your side (a VPN, proxy, antivirus or router) blocking it.

DNS_PROBE_FINISHED_NXDOMAIN

"NXDOMAIN" means "non-existent domain": the DNS server answered that this name doesn't exist. Usually a typo in the address, an expired domain, missing DNS records, wrong nameservers, a cached old answer, or a problem with the DNS server you are using.

Step 1: Is it just you?

  • Check the address for typos, especially the domain extension;
  • Try mobile data (turn Wi-Fi off) and see if it loads;
  • Try another browser or a private window, to rule out extensions;
  • Turn off any VPN or proxy and try again;
  • Use an online "is it down" checker, or ask someone elsewhere to open it.

If it works on mobile data but not on your Wi-Fi, the problem is almost always DNS, your router or your internet provider. If it fails everywhere, the problem is the site: jump to step 5 if it is yours.

Step 2: Change your DNS server

For NXDOMAIN or intermittent timeouts, switching to a public DNS often fixes it immediately.

  • Cloudflare: 1.1.1.1 and 1.0.0.1
  • Google: 8.8.8.8 and 8.8.4.4
  • Quad9: 9.9.9.9

Where to change it:

  • Windows: Settings > Network & Internet > your connection > DNS server assignment > Edit;
  • macOS: System Settings > Network > your connection > Details > DNS;
  • Android: Settings > Network > Private DNS, and enter one.one.one.one or dns.google;
  • iPhone: Settings > Wi-Fi > (i) next to the network > Configure DNS > Manual;
  • Router: in the WAN/Internet or DHCP settings, which changes it for every device at once.

Step 3: Clear the DNS cache

Even after fixing DNS, your device may still use an old cached answer.

Windows (Command Prompt as administrator):

ipconfig /flushdns

macOS (Terminal):

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

Chrome also keeps its own cache: open chrome://net-internals/#dns and click "Clear host cache".

Android and iPhone: turn airplane mode on and off. Router: restart it (unplug for 10 seconds).

Step 4: Check your own computer

  • Check the hosts file for an old entry for that domain (C:\Windows\System32\drivers\etc\hosts on Windows, /etc/hosts on macOS and Linux);
  • Temporarily disable the antivirus or firewall's web protection to test;
  • Reset the network stack on Windows if many sites fail:
netsh winsock reset
netsh int ip reset
ipconfig /release
ipconfig /renew

Restart the computer afterwards.

Step 5: If it is your site, check the domain and DNS records

When the error happens for everyone, look at the domain first:

  • Is the domain active? Check the expiry date in your registrar or with a WHOIS lookup. An expired domain gives NXDOMAIN for everyone;
  • Are the nameservers right? They must be the ones where your DNS records live (your host, Cloudflare, Route 53...);
  • Does the A record point to the right IP? And does www have its own A or CNAME record?

You can check from any computer:

nslookup example.com 8.8.8.8
nslookup www.example.com 1.1.1.1
# macOS / Linux
dig example.com +short
dig NS example.com +short

If one public DNS answers and another doesn't, the change is still propagating. DNS changes usually take minutes, but can take a few hours depending on the TTL of the old records. If the IP changed recently (for example a new server, or an AWS instance restarted without an Elastic IP), update the A record.

Step 6: If DNS is right, is the server answering?

If the domain resolves to the right IP and you still get a timeout, the server isn't accepting connections:

  • Is the server running, and the web service (Apache, Nginx, IIS) started?
  • Does the firewall allow ports 80 and 443? On AWS, check the instance's security group; on Linux, firewalld, ufw or iptables;
  • Is the server overloaded (CPU or memory at 100%)?
  • Is the hosting provider in maintenance or having an outage?

Test the connection directly:

curl -I https://example.com
curl -I --resolve example.com:443:203.0.113.10 https://example.com   # test a specific IP

If you use Cloudflare or another CDN, set the record to "DNS only" for a moment to test the origin directly. If the server answers but with an error page, see 502 Bad Gateway or 504 Gateway Timeout.

When it fails only on one internet provider

Sometimes a site opens in some places and not in others. This is usually:

  • the provider's DNS servers failing or serving an old cached answer;
  • a routing problem between the provider and the hosting network;
  • the server's IP on a block list (less common).

Using Cloudflare, Google or Quad9 DNS on the device or router usually works around the DNS cases. For routing problems, a traceroute (tracert example.com on Windows) shows where the connection stops; send it to the provider.

Quick checklist

  • Address typed correctly?
  • Works on mobile data? If yes, it is your Wi-Fi, router or DNS;
  • DNS changed to 1.1.1.1 or 8.8.8.8?
  • DNS cache cleared (device, browser and router)?
  • VPN, proxy and hosts file checked?
  • Your site: domain active, nameservers and A/CNAME records correct?
  • Your site: server up, ports 80/443 open in the firewall?

Conclusion

ERR_CONNECTION_TIMED_OUT and DNS_PROBE_FINISHED_NXDOMAIN are usually fixed by changing DNS, clearing the cache and checking the domain's records. If the site is yours, keep the domain on auto-renew, use a fixed IP for the server, and monitor uptime so you find out before your visitors do. If Google can't reach your site either, see why Google is not indexing your site.

Frequently asked questions

What does NXDOMAIN mean?

"Non-existent domain": the DNS server says the name has no records. It is a DNS problem, not a server problem.

Why does the site open on my phone but not on my computer?

Your computer is probably using a different DNS server, an old cache, a VPN or a hosts file entry. Clear the DNS cache and check those.

How long does DNS propagation take?

Usually minutes, sometimes a few hours, depending on the TTL of the old records. Lowering the TTL before a planned change makes it faster.

Can an expired domain cause NXDOMAIN?

Yes. After expiry, the registrar removes or changes the DNS records, and the domain stops resolving for everyone.

Is ERR_CONNECTION_TIMED_OUT a problem with my internet?

It can be, if many sites fail. If only one site fails, and it fails from other networks too, the problem is that site's server.

More in Web troubleshooting