Dig

Dig is a powerful tool, as you have already learned in Chapters 1, "DNS Concepts," and 2, "DNS in Practice." The following is the most general command-line syntax for Dig:

dig [@server] domain [<query-type>] [<query-class>] [+<query-option>]
         [-<dig-option>] [%comment]

Behind this inoffensive command line, Dig hides more options than you can shake a stick at.

Dig requires that you think about what kind of record you want retrieved and that you stop to think about the correct name to look up. A tool such as host will gladly look up 192.168.55.3 for you, understanding that you want the PTR record of 3.55.168.192.in-addr.arpa. Dig will not, and its default record type is A. In addition, dig -h will print usage information. Dig is documented ...

Get Concise Guide to DNS and BIND, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.