Diagnosing a website that will not load: DNS, TLS and HTTP in order
A methodical checklist for working out whether an outage is DNS, the certificate, the server or just you – and what each kind of failure looks like.
In short
To diagnose a website that will not load, first check from another network whether it is down for everyone, then test the layers in the order a browser uses them: DNS, the TCP connection, the TLS certificate and the HTTP response. Each layer depends on the one before, so the first that fails is almost always the cause.
On this page
"The website is down" can mean a dozen different things. The domain may have expired, DNS may point at the wrong server, the certificate may have lapsed overnight, the application may have crashed, or the site may be fine and the problem is a single office network. Each has a different fix and often a different person responsible for it.
The quickest route to the answer is to test the layers in the order a browser uses them: name, connection, encryption, then the web server's response. Each layer depends on the one before it, so the first one that fails is almost always the cause.
Step 0: Is it down for everyone, or just you?
#Before anything else, try the site from a different network – a phone on mobile data, with Wi-Fi switched off, is the easiest. Then run it through our Website Status checker, which requests the site from our server rather than from your connection and reports the DNS, connection and TLS timings and the HTTP status code it received.
- Works elsewhere, fails for you: the problem is local. Suspect your DNS cache, a corporate firewall or web filter, a browser extension, or your router. Try a private browsing window, then restart the router.
- Fails everywhere: the site really is down. Work through the layers below.
Step 1: DNS – does the name lead anywhere?
#The browser's first job is to turn the domain into an IP address. Look up the site's A record (and AAAA for IPv6) in our DNS Lookup. There are three outcomes to look for.
NXDOMAIN: the name does not exist
The name is not in the DNS at all. The usual causes are an expired or suspended registration, or a domain that has no nameservers set at the registrar. Check the domain in our WHOIS Lookup: it shows the expiry date, the registrar, the domain's status codes and the nameservers it is delegated to. A domain in its post-expiry grace period can usually be renewed straight away through the existing registrar.
SERVFAIL: the lookup broke
The nameservers could not give a valid answer. One cause is nameservers that were changed to a provider where the zone was never set up. When a domain uses DNSSEC, the most common cause is a mismatch between the DS record held at the registrar and the keys the DNS host is signing with – typically after moving DNS to a new provider without updating or removing the DS record. Validating resolvers then refuse to answer at all, so the site disappears for a large share of users at once.
An answer, but the wrong one
If the address returned is not your server's, someone has changed the record, or you have just migrated and resolvers are still holding the old value. Each record has a TTL (time to live), shown in the lookup, which says how long resolvers may cache it. Until that time has passed some visitors will reach the old server. Lowering the TTL a day before a planned move avoids this.
Step 2: The connection – is anything listening?
#With an address in hand, the browser opens a TCP connection to port 443 (HTTPS). Two different failures look similar in a browser but mean different things:
- Connection refused: the server answered immediately to say nothing is listening on that port. The web server software is stopped, or bound to the wrong port.
- Connection timed out: nothing answered at all. The server is off, a firewall is dropping the traffic, or the address is wrong.
The Website Status checker reports which of these it hit. From a terminal, curl -v https://example.co.uk shows the same thing in its first few lines.
Step 3: TLS – will the browser trust the certificate?
#Once connected, the browser and server negotiate encryption, and the browser checks the site's certificate. Our SSL Checker connects the way a browser does and reports the certificate, its expiry date and the chain of authorities behind it. The failures to look for are:
| Problem | What users see | Typical cause |
|---|---|---|
| Expired certificate | A full-page warning in every browser | Automatic renewal failed – often because the validation check could not reach the server |
| Name mismatch | Warning that the certificate is for a different site | The certificate covers www.example.co.uk but not example.co.uk, or the reverse |
| Incomplete chain | Works on some devices, fails on others | The server sends its own certificate but not the intermediate that links it to a trusted root |
| Self-signed or unknown issuer | Warning on every device | A default certificate from the server software, or one issued by a private authority |
The incomplete chain deserves a special mention because it is so confusing. Some browsers fetch or remember missing intermediate certificates for themselves, so the site works for the person who set it up and fails for customers on a different device or for automated systems. If the report "it works for me" keeps coming up, check the chain.
Step 4: HTTP – what did the server say?
#If the connection and certificate are fine, the server returns a status code. The Website Status checker and our HTTP Headers Checker both show it, along with any redirects along the way.
5xx: the server is at fault
- 500 Internal Server Error: the application crashed while handling the request. Look in the application's error log; a recent code change or plugin update is the usual suspect.
- 502 Bad Gateway: a front-end server or proxy could not get a valid response from the application behind it. On managed hosting this very often means the application process itself has stopped or failed to start.
- 503 Service Unavailable: the server is overloaded, deliberately in maintenance mode, or has hit a resource limit set by the hosting plan.
- 504 Gateway Timeout: the application is running but too slow; a database query or a call to another service is hanging.
4xx: the request was refused
- 403 Forbidden: file permissions, a missing index file, or a firewall or security rule blocking the request – sometimes only for certain countries or for automated checkers, which is worth remembering if our checker gets a 403 while your browser does not.
- 404 Not Found on the home page: the site's files are not where the server expects them, often after a deployment to the wrong folder.
Redirect loops
"Too many redirects" means each response points somewhere that points back. The classic case is a site behind a proxy or CDN that connects to the server over plain HTTP while the server insists on redirecting to HTTPS – the proxy passes the redirect back, the browser follows it, and the proxy asks the server over plain HTTP again. Switching the proxy to connect to the origin over HTTPS fixes it. The redirect chain in the Website Status result shows the loop step by step.
Step 5: It loads, but it is broken
#If the page arrives with a 200 status but looks wrong – no styles, missing images, buttons that do nothing – open the browser's developer tools (F12) and look at the Console. Common causes are files that failed to load, "mixed content" (an HTTPS page loading a script over HTTP, which browsers block), and a Content-Security-Policy header that blocks a script the page needs. The HTTP Headers Checker shows the security headers a site sends and explains what each one allows.
A checklist to keep
#- Test from another network, then with the Website Status checker.
- Look up the A and AAAA records; check for NXDOMAIN, SERVFAIL or a wrong address.
- If DNS is missing, check expiry and nameservers with WHOIS.
- Note whether the connection is refused or times out.
- Check the certificate's expiry, names and chain with the SSL Checker.
- Read the status code and the redirect chain.
- If the page loads but misbehaves, read the browser console and the response headers.
Working through the layers in that order turns a vague "it's down" into a specific fault with a specific owner: the registrar, the DNS host, the hosting company or the developer. That is usually most of the work done.