#!/usr/bin/env sh set -eu host="${1:-example.com}" printf '== DNS == ' dig +short "$host" A printf ' == HTTPS headers == ' curl --fail --show-error --location --max-time 10 --head "https://$host/" printf ' == Timing == ' curl -o /dev/null -sS -w 'status=%{http_code} dns=%{time_namelookup} connect=%{time_connect} total=%{time_total} ' "https://$host/"