Technical data
dig
Query
Type
Query
Class Description
in
C_IN Internet class domain
any
C_ANY All class information
See RFC 1035 for a complete list of query classes.
You can use the
query-class any
statement to specify a class or a type of query.
dig
parses the first occurrence of
any
to mean
query-type = T_ANY
. To specify
query-class = C_ANY
, you must either specify
any
twice or set
query-class
using
the
-c
option.
Options
%ignored-comment
Use the percent (%) character to include an argument that is not parsed. This
can be useful if you are running
dig
in batch mode. Instead of resolving every
@server-domain-name
in a list of queries, you can avoid the overhead of doing
so, and still have the domain name on the command line as a reference. For
example:
dig @128.9.0.32 %venera.isi.edu mx isi.edu
-<dig-option>
Use the hyphen (-) character to specify an option that affects the operation of
dig
. The options described in the Table A–1 are currently available (although not
guaranteed to be useful). Options that are uppercase characters must be specified
in quotes. For example,
dig -"P"
Table A–1 dig Options
Option Description
-x dot-notation-
address
Convenient form for specifing reverse translation of IP
address. Instead of:
dig 32.0.9.128.in-addr.arpa
you can use:
dig -x 128.9.0.32
-f file
File for
dig
batch mode. The file contains a list of
query specifications (
dig
command lines) that are to
be executed successively. Lines beginning with ;, #, or
\n are ignored. Other options can still appear on the
command line and will be in effect for each batch query.
"-T" time
Time (in seconds) between the start of successive queries
when running in batch mode. Can be used to keep two
or more batch
dig
commands running synchronously.
The default value is 0. Use quotation marks to preserve
the case of this option.
-p port
Port number. Queries a name server listening to a
nonstandard port number. The default is 53.
(continued on next page)
A–6 Troubleshooting Utilities Reference