Linux networking · Testing connectivity
Time each phase of a request
Show how long DNS, connecting, TLS and the first byte took.
curl -s -o /dev/null -w "dns %{time_namelookup}s connect %{time_connect}s tls %{time_appconnect}s ttfb %{time_starttransfer}s total %{time_total}s\n" https://example.com
Official Linux networking documentation
More testing connectivity commands
- Check that a host answers
- Trace the path to a host
- Trace with live statistics
- Test whether a port is open
- Find the path MTU
All testing connectivity commands · Linux networking cheatsheet