curl
Contents
Force domain resolution to a specific IP
curl --resolve yourdomain.com:443:your_ip_address -w "Total time: %{time_total}s\n" -o /dev/null -s https://yourdomain.com
Ping a domain repeatedly
for i in {1..10}; do
curl -w "Attempt $i - Total time: %{time_total}s\n" -o /dev/null -s https://yourdomain.com
sleep 1
done
Detailed timing metrics
curl -w "\nDNS lookup time: %{time_namelookup}s\nConnection time: %{time_connect}s\nStart transfer time: %{time_starttransfer}s\nTotal time: %{time_total}s\n" -o /dev/null -s https://yourdomain.com