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

d
dig(1M) dig(1M)
(BIND 9.3)
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 Example 5 in
EXAMPLES.
EXAMPLES
Example 1
To look up information about domain
a.example.com
using DNS-Server 10.53.0.2 asking for host
address
A records:
$ dig +tcp +noadd +nosea +nostat +noquest +nocmd -p 5300 \
a.example.com @10.53.0.2 a
Example 2
To query a.example.com
using DNS-Server 10.53.0.2 without authentication, asking for
A records:
$ dig +tcp +noadd +nosea +nostat +noquest +nocmd +noauth \
-p 5300 a.example.com @10.53.0.2 a
Example 3
To request a transfer:
$ dig +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
example.com @10.53.0.2 axfr -p 5300
Example 4
To request a transfer with Transaction Signature (TSIG):
$ dig +dnssec +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
tsigzone.com @10.53.0.3 axfr -y tsigzone.com:1234abcd8765 -p 5300
The key is 1234abcd8765 .
To secure server-to-server communication, BIND 9 primarily uses TSIG for zone transfer, notify, and recur-
sive query messages. TSIG is very useful for dynamic updates.
Example 5
To make three lookups from the command line:
$ dig +qr www.bind.org any -x 127.0.0.1 bind.org ns +noqr
The three queries are:
www.bind.org any An ANY query for domain name www.bind.org .
-x 127.0.0.1 A reverse lookup of 127.0.0.1
bind.org ns +noqr A name server lookup for domain bind.org, suppressing the query
display for this query only (+noqr).
AUTHOR
dig was developed by the Internet Systems Consortium (ISC).
SEE ALSO
dnssec-keygen(1), dnssec-signzone(1), host(1), nsupdate(1), hosts_to_named(1M), named(1M),
gethostent(3N), hostname(5).
Requests for Comments (RFC): 1886, available online at http://www.rfc-editor.org/
.
HP-UX IP Address and Client Management Administrator’s Guide, available online at
http://docs.hp.com.
BIND 9 Administrator Reference Manual, available from the Internet Systems Consortium at
http://www.isc.org/sw/bind/arm93.
168 Hewlett-Packard Company 5 HP-UX 11i Version 3: February 2007