Measure how long a DNS query takes.
Section: Reachability and Latency
Time a DNS lookup
bash
bash
time dig +short example.comExplanation
Measure how long a DNS query takes.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Reachability and Latency