What is dig?

dig (Domain Information Groper) is a powerful command-line DNS lookup utility part of BIND, used for querying DNS name servers to retrieve records (A, AAAA, MX, NS, TXT, etc.), tracing resolution paths, performing reverse lookups, and debugging DNS configurations. It provides detailed, structured output with sections like HEADER, QUESTION, ANSWER, AUTHORITY, and ADDITIONAL. Key characteristics include flexibility with custom servers, query types, options (+trace, +short), batch mode, and superior verbosity compared to nslookup.

dig Command Querying A Record Example

dig Screenshot from Wikipedia

dig Terminal Output Example

dig Usage Screenshot

Why Understand dig?

Proficiency with dig is essential for accurate DNS intel and secure configurations. 🔒

Common Use Cases

DNS Query Process with dig Illustration

How DNS Works Diagram