dig.1m (2010 09)
d
dig(1M) dig(1M)
(BIND 9.3)
+[no]nssearch
Attempt [do not attempt] to find the authoritative name servers for the zone containing the
name being looked up and display the SOA
record that each name server has for the zone.
+nssearch also sets the +norecurse query option. The default is
+nonssearch,
+[no]qr Print [do not print] the query before actually sending the query. The default is
+noqr.
+[no]question
Print [do not print] the question section of a query when an answer is returned. The default is
+question: print the question section as a comment.
+[no]recurse
Set [do not set] the RD (recursion desired) bit in the query, to have
dig send recursive
queries. The default is
+recurse, except that recursion is automatically disabled (
+nore-
curse
) when the +nssearch or +trace
query option is used.
+retry=A
Set the number of times to retry UDP queries to server to A. Unlike
+tries, this count does
not include the initial query. The default is 2.
+[no]search
Use [do not use] the search list in
/etc/resolv.conf
(if any). The default is +nosearch.
+[no]short
Display [do not display] a short answer. The query results can be displayed in two forms:
Complete and Short answers. In the short form, only the result is displayed. In the complete
form, additional information (for example, about other servers that might answer your query)
is also included. The default is
+noshort.
+[no]stats
Print [do not print] statistics such as the size of the reply when the query was made. The
default is
+stats.
+[no]tcp Use [do not use] TCP when querying name servers. The default is
+notcp: use TCP if an
AXFR or IXFR query is requested, and use UDP otherwise.
+time=T Set the timeout for a query to T seconds. The minimum value of T is 1 second. If T is less
than 1, it is set to 1 second. The default timeout is 5 seconds.
+[no]trace
Trace [do not trace] the delegation path from the root name servers for the name being looked
up. When tracing is enabled,
dig makes iterative queries to resolve the name that is being
looked up. It will follow referrals from the root servers, showing the answer from each server
that was used to resolve the lookup. +trace also sets the +norecurse query option. The
default is +notrace.
+tries=A
Set the number of times to retry UDP queries to server to A.IfA is less than 1, it is set to 1.
The default is 3.
+[no]ttlid
Display [do not display] the TTL when printing the record. The default is +ttlid.
+[no]vc Use [do not use] virtual circuit when querying name servers. This alternate syntax to
+[no]tcp is provided for backward compatibility. The default is +novc.
Multiple Queries
The BIND 9 implementation of
dig allows multiple queries on the command line (in addition to support-
ing the -f batch file option). Each of those queries can be supplied with its own set of options, query
type, query class, and query options. See Example 5 in EXAMPLES.
Global Query Options
A global set of query options, which is applied to all queries, can precede the first set of options, name,
query type, query class, and query options supplied on the command line. Any global query options
(except the
+[no]cmd query option) can be overridden by a query-specific set of query options. See Exam-
ple 5 in EXAMPLES.
4 Hewlett-Packard Company − 4 − HP-UX 11i Version 3: September 2010