dig is the precise DNS query tool on Linux and macOS. It shows the full answer, TTLs, flags and the responding server, so it beats nslookup for debugging.
| No. | Step | Source | Destination | Type | Info |
|---|---|---|---|---|---|
| 1 | Full answer | analyst terminal | resolver 1.1.1.1 | REQUEST | AAAA? @1.1.1.1 |
| 2 | Full answer | resolver 1.1.1.1 | analyst terminal | RESPONSE | ANSWER · TTL 300 |
dig is the precise DNS query tool on Linux and macOS. It shows the full answer, TTLs, flags and the responding server, so it beats nslookup for debugging.
dig name TYPE @server, e.g. dig example.com AAAA @1.1.1.1.+short prints only the answer; +trace walks root → TLD → authoritative.dig -x 8.8.8.8.dig axfr) is wrongly allowed.