HP-UX Reference (11i v3 07/02) - 1M System Administration Commands A-M (vol 3)

d
dig(1M) dig(1M)
(BIND 9.3)
given in the ndots statement in /etc/resolv.conf
,or
1 if there is no ndots statement.
Names with fewer dots are interpreted as relative names and will be searched for in the domains
listed in the search or the domain directive in the
/etc/resolv.conf
file.
+[no]nssearch
Attempt [do not attempt] to nd 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 (
+norecurse
) 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: Com-
plete 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 supporting
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.
HP-UX 11i Version 3: February 2007 4 Hewlett-Packard Company 167