Uptime monitoring from outside your own infrastructure that alerts you the minute your site goes down — upordown.online

The first ten minutes of an outage are often spent in the wrong place: restarting an app that is healthy, or tailing nginx while the real problem is a DNS record that started pointing at nothing. A few commands, in a fixed order, tell you which layer failed. After that you know which log, which dashboard and which person to involve.

Run these from a network that is not the same VPC as the origin, ideally the same kind of network a customer is on. A bastion host in the app's subnet will hide public DNS and TLS problems.

1. Does the name resolve?

dig +short example.com A dig +short example.com AAAA dig +short www.example.com A 

Also try a public resolver, so you are not looking only at a cached office answer:

dig +short @1.1.1.1 example.com A dig +short @8.8.8.8 example.com A 

No answer, or NXDOMAIN, or a SERVFAIL. This is DNS. Check the registrar, the nameservers, recent record edits, and TTL. If some resolvers have the new address and some have the old, you are mid-propagation or a recursive resolver is holding a stale cache. If only the AAAA is wrong, you have an IPv6-shaped outage: some visitors fail, some don't, and a v4-only monitor stays green.

The address is unexpected. Compare it to what you think is current (a runbook, a Terraform output, last week's note). A typo, a leftover failover, or a wildcard catching a name you didn't intend is more common than a compromised account, but both look like "the site is gone".

The address is right. Move on. Do not start the DNS debug ritual because the homepage is 500.

2. Does anything accept a TCP connection?

nc -vz -w 5 203.0.113.10 443 # or curl -sS -o /dev/null --connect-timeout 5 https://example.com/ --connect-only 

Connection refused. Something is listening on the wrong port, the process is down, or a security group / firewall is rejecting you. This is often the origin or the load balancer, not DNS.

Connection timed out. A firewall drop, a blackholed route, or a host that is down and not refusing. Compare from another network. If it works from the office VPN but not from a phone off Wi-Fi, think WAF, geo rules, or ISP routing.

Connect works. Move on to TLS.

3. Does TLS complete, with the name you asked for?

echo | openssl s_client -servername example.com -connect example.com:443 2>/dev/null | openssl x509 -noout -dates -subject -ext subjectAltName 

Or, more readably with curl:

curl -sSvI https://example.com/ -o /dev/null --max-time 15 

Look for the handshake errors first, not the HTTP status.

  • Certificate expired, or not yet valid. The name is fine; the cert is not. Check the dates, then who was supposed to renew it (Let's Encrypt cron, a load-balancer integration, a human).
  • Name mismatch / no SAN for this host. Traffic is hitting a default cert, a stale cert for staging., or the wrong vhost. Common after a new hostname or a failover.
  • Protocol or cipher mismatch. An old TLS-only-1.0 origin, or an origin that only speaks HTTP on 443. curl -v will say.
  • Handshake hangs. Middleboxes, a broken TLS offloader, or an origin that accepts TCP and then never replies. Distinct from an HTTP timeout.

If you want to skip DNS and test a specific origin:

curl -sSvI --resolve example.com:443:203.0.113.10 https://example.com/ -o /dev/null 

If --resolve works and the public name doesn't, you are back at DNS or routing. If both fail the same way, the origin or the proxy is the problem.

4. What HTTP status comes back, and from whom?

curl -sS -D- -o /tmp/body --max-time 30 https://example.com/ 

Read the status line, server, via, x-cache, cf-ray, and the first bytes of the body.

  • 5xx from the proxy (504, 502, 503, Cloudflare 52x). The front door is up; the thing behind it is slow, down, or refusing. Go to the proxy error log, not the app's "it looks fine to me" dashboard.
  • 5xx from the app (often a stack trace, a framework error page, or your own branded 500). The origin is reachable and failing. Go to the app logs and the database.
  • 3xx to a dead place. DNS and TLS can be fine while a redirect sends everyone to an old hostname that is expired, parked, or 404. Follow it with curl -sSI and then with -L separately so you see each hop.
  • 200 with the wrong content. A maintenance page, a CDN stale cache, a default site on the load balancer, an empty SPA shell. Status alone is not health.

A decision tree only helps if you run it from the same kind of network your visitors use. upordown.online checks the public name from outside your infrastructure, so the DNS, TLS and HTTP failure you would have found with this tree can be an alert with a time, instead of a guess after the tweets start.

5. Put it in a 60-second order

When the room is noisy, I run it in this order and I stop at the first failure:

  1. dig the public name at 1.1.1.1 and 8.8.8.8. Wrong or empty? DNS.
  2. curl -svI --max-time 15 the public HTTPS URL. Handshake error? TLS. Connect timeout or refused? Network, firewall, or nothing listening.
  3. Read the HTTP status and server header. Proxy 5xx? Proxy logs. App 5xx? App logs. Redirect? Follow the chain.
  4. Only then SSH to a box.

The habit that wastes the most time is starting at step 4 because SSH is already open.

A note on monitors

A good external check already does steps 1–3 for you, if it uses the public hostname, validates TLS, and records the error class (DNS, TLS, connect, timeout, HTTP status). When the alert says "TLS handshake failed", do not start with the app log. When it says "502", do. The decision tree is what you want the monitor to have run before it pages you; it is also what you run to confirm the monitor is right.

Related reading

When was the last time you restarted an app that wasn't the problem? Which step of this tree would have told you sooner?