Troubleshooting
Find the layer where a request starts to fail.
Collect a baseline
dig service.example A +short
dig service.example AAAA +short
curl -sS -o /dev/null --max-time 12 \
-w 'dns=%{time_namelookup} connect=%{time_connect} tls=%{time_appconnect} first_byte=%{time_starttransfer} status=%{http_code}\n' \
https://service.example/
Timings are cumulative. Subtract adjacent phases when estimating time spent in each one. Repeat the check from a second network if symptoms appear location-specific.
Follow the evidence
- Name lookup failure
- Compare the authoritative answer with recursive resolver results and review the TTL after a DNS change.
- Connection refused or timed out
- Check the listener, the host firewall, cloud firewall rules, and address-family reachability.
- Handshake failure
- Check the configured host name, the certificate chain, client clock, and supported TLS versions.
- Slow first byte
- Compare server access logs with upstream duration, connection-pool occupancy, and timeout metrics.
Record the incident
Capture the timestamp, exact hostname and path, status code, one representative request ID, and the client network. Record the change made and the same measurement after recovery.