How to tell whether an outage is DNS, TLS, the proxy or the origin (a curl, dig and openssl decision tree)
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…
When a website goes down, it can be helpful to know which layer of infrastructure failed. A quick, fixed order of commands can help identify the issue. First, determine if the domain name resolves using dig commands with different resolvers. If not, the problem is likely DNS. Check the registrar, nameservers, and TTL. If the address is unexpected, compare it to what you expect. If the address is correct, move on.
Next, check if a TCP connection can be established using nc or curl. If the connection fails, investigate the port, process, or firewall. If the connection is successful, proceed to the next step.
Test if TLS completes using openssl s_client or curl. Look for certificate errors, expiration dates, and SAN mismatches. If the TLS handshake fails, the issue is likely with the certificate or TLS configuration.
Check the HTTP status returned by curl. If you receive a 5xx error from the proxy, investigate the proxy logs. If the app returns a 5xx error, check the app logs and database. If you receive a 3xx status, follow the redirect to see if it leads to an expired or parked domain.
Ultimately, only run this decision tree from the same network environment as your visitors. Tools like upordown.online already perform steps 1-3 from outside your infrastructure, alerting you to DNS, TLS, or HTTP issues without guessing based on tweets.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to