For a remote HTTPS failure, separate name resolution, route selection, TCP connection, TLS verification, and the HTTP response. State the first layer for which you lack evidence, then test that layer from the affected client.
This is an original interview drill. Read Kyle Rankin's Linux Journal article on remote networks for the historical walkthrough. Return to the main interview guide for the full revision route.
The website will not load. What do you test first?
Confirm scope: one client or many, one hostname or many, and browser versus command-line behavior. Check VPN/proxy settings and the exact error. A failed public website does not establish that the whole Internet is unavailable.
getent ahosts example.com
dig example.com A
dig example.com AAAA
ip route get 192.0.2.80
The address is a documentation placeholder; substitute a resolved destination. getent follows the host's configured name-service sources; dig tests DNS. Route lookup reports a forwarding decision, not delivery. Run checks inside the failing application's network namespace when relevant.
Gateway ping succeeds. Does that prove remote access works?
It establishes a successful ICMP exchange with that gateway address. Forwarding, upstream routes, policy, translation, and remote availability remain unproven. A failed ping is also inconclusive where ICMP replies are filtered or limited.
DNS times out. Is the hostname missing?
No. Timeout means no usable answer arrived in time; investigate resolver reachability, configuration, transport, and server behavior. NXDOMAIN is a DNS response stating the queried name does not exist. SERVFAIL reports a resolution failure and can have causes such as upstream or validation problems. Compare the actual question, resolver, and response. See DNS resolution concepts.
Direct-IP HTTPS fails while hostname HTTPS works. Why?
TLS certificates, Server Name Indication, and HTTP virtual hosting commonly depend on the hostname. To pin a backend while preserving the URL identity, use curl's --resolve in an environment where that endpoint is intended to serve the name:
curl --noproxy '*' --connect-timeout 3 --max-time 10 \
--resolve example.com:443:192.0.2.80 https://example.com/
Substitute the real intended hostname/address. This example deliberately bypasses configured proxies to test direct access; do not use it as evidence for a production proxy path. Keep certificate verification enabled. See curl --resolve.
How do you separate DNS, TCP, TLS, and application delay?
For an explicitly direct HTTPS test:
curl --noproxy '*' --connect-timeout 3 --max-time 10 -sS -o /dev/null \
-w 'dns=%{time_namelookup} tcp=%{time_connect} tls=%{time_appconnect} first_byte=%{time_starttransfer} total=%{time_total} code=%{http_code}\n' \
https://example.com/
Timings are cumulative from transfer start, not independent stage durations. For a fresh direct connection, differences help estimate TCP and TLS stages. Reuse, redirects, proxies, and negotiated protocols change interpretation. A slow first byte can reflect server work or dependencies as well as the network. Check curl's exit result too: HTTP errors normally do not make this command fail. The curl timing variables define the measurements.
Traceroute shows asterisks. Where is the fault?
An asterisk means no response arrived for that probe in time. A router can forward packets while limiting control-plane replies; later hops can still answer. Do not declare the first silent hop broken without end-to-end and boundary evidence.
traceroute -n -T -p 443 example.com
This Linux example sends TCP probes to port 443. Hop discovery still normally relies on ICMP Time Exceeded responses from intermediate routers. TCP probes do not remove every dependency on ICMP, and their route may differ from the application's due to load balancing or route changes. See traceroute.
Worked drill: one address family fails
Constructed evidence:
DNS returns both A and AAAA records.
An IPv4 HTTPS request succeeds.
An IPv6 HTTPS request times out before receiving a response.
The browser is intermittently slow to open the site.
What does this establish?
The tested IPv4 path and service operation work; the tested IPv6 path does not complete within the deadline. Verify that failure occurs during connection rather than later application work. DNS returning AAAA does not prove end-to-end IPv6 connectivity, and browser fallback timing can affect the symptom.
What is your next observation?
Compare IPv6 route/source selection, firewall policy, and packet evidence at both ends. Use curl -4 and curl -6 with the same bounded test to reproduce the difference. Do not change DNS globally before establishing whether the fault is a client path, published endpoint, or server listener.
How do you verify recovery?
Repeat the affected user operation from the original client and other affected locations, using each address family intended to work. Check errors, latency, and actual completion. A successful traceroute alone cannot certify HTTPS recovery. Revise local network isolation if the failure begins before the gateway.