“The site is down” is not a diagnosis — it is a symptom with five possible layers behind it, and each layer has a different fix and a different person responsible. The DNS name can be gone, the server refuse TCP, the TLS handshake fail, the HTTP answer be an error code — or everything technically “work” at fifteen seconds per request. Here is how to tell the layers apart in a minute, with nothing but curl and dig — and how to run the same check for dozens of URLs at once.
What “down” means: the five layers
| Symptom | Layer | What it usually is |
|---|---|---|
| Name does not resolve at all | DNS | The domain expired and was deleted, the nameservers are gone, or the record was removed. The site is not “down” — it no longer exists. |
Connection timed out / refused | TCP | The host is offline, the port is closed, or a firewall drops the packets before the web server ever sees them. |
| Browser shows a certificate warning | TLS | An expired certificate takes the site offline for every modern browser — even though the server itself is perfectly alive. |
| 5xx or 4xx status code | HTTP | The web stack answered. A 502/503 is the backend; a 404 is routing or deleted content; a 403 is often a firewall or WAF decision. |
| Status 200, but painfully slow | Time | Formally available, practically unusable: timeouts in scripts, a saturated database, a dying disk. |
A browser collapses all five into one message, so “open it and see” is not a check. Each layer is one command away.
Diagnose from a terminal, layer by layer
dig +short example.com # 1) DNS: an IP at all? curl -sI --max-time 10 https://example.com # 2) TLS+TCP: handshake, headers
dig returns nothing or a parking IP → the problem is at the registrar or nameservers, not the server. If DNS is fine but curl hangs with no output, the request never got past TCP — the host, port or firewall. If curl fails with a certificate error but works with --insecure added, the server and site are fine and the certificate is the whole story.
One nuance: some servers answer HEAD with a 405 even on a healthy page. The GET equivalent, without downloading the body:
curl -s -o /dev/null -w "%{http_code} %{time_total}s\n" --max-time 15 https://example.com
200 0.31s — available and fast. 200 12.4s — available on paper, broken for real users and crawling bots, which have their own patience budgets.
The two silent killers: expired domain, expired certificate
Both failures look identical from the outside — “the site is down” — and both are invisible in the moment, because nothing breaks until the date arrives.
- Expired domain. After the grace period the registry deletes the name; DNS goes silent first, and soon the site is simply “not found”. The dates are public: a bulk domain expiry check reads them via RDAP (with a WHOIS fallback) and shows days left per domain — a negative number means the registration has already lapsed.
- Expired certificate. Every modern browser refuses the connection, while
curl --insecureand the server logs show a fully working site. Most public CAs issue certificates for 90 days, so this cycle comes around four times a year. A bulk certificate check shows expiry dates and days left for a whole list of hosts, flagging everything under your threshold.
Both are batch jobs by design: for a portfolio, “I will just remember to renew” stops working.
One probe is not “worldwide availability”
An availability check answers “does one machine reach the site right now”. It does not say what a visitor in another country sees: routing, CDN edges and regional blocks make availability per-location. This checker probes from its own server — honest about that; for a portfolio audit it is what you want: one consistent vantage point, comparable numbers, CSV export.
Point-in-time availability is also not uptime. Uptime is a rate measured over weeks and months; a single 200 today proves little about last Tuesday. If the goal is a monthly figure, that is a different exercise — how uptime is actually calculated covers the arithmetic. What a bulk pass gives you is the fastest honest sweep: for up to 100 URLs in one run, the bulk URL status checker reports each final status code, the full redirect chain with hops, the final URL and the response time — flagging 4xx/5xx rows. A chain ending somewhere unexpected is a classic post-migration failure the browser happily hides.
Common mistakes
- Diagnosing only from the browser. The browser merges DNS, TLS and HTTP failures into one dialog. Without separating the layers you fix the wrong thing.
- Checking only the apex.
example.comresolving does not meanwww.example.comdoes. Check the exact hostname users and DNS records actually use. - Trusting a status code without the final URL. A 200 at the end of a four-hop chain may be a completely different page than the one asked for.
- Treating “200” as “healthy”. Response time is part of availability; a twelve-second 200 sheds real visitors and crawls.
- Testing once during an incident and never again. The expired-certificate class of failure is only caught before the date, never after.
Check availability for a whole list at once: run the bulk URL status checker — status codes, redirect chains, response times, CSV export — and keep domains and certificates ahead of their expiry dates with the domain expiry and SSL certificate checks.