dig.1m (2010 09)

d
dig(1M) dig(1M)
(BIND 9.3)
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
recursive 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://www.hp.com/go/hpux-networking-docs
.
BIND 9 Administrator Reference Manual, available from the Internet Systems Consortium at
http://www.isc.org/sw/bind/arm93.
HP-UX 11i Version 3: September 2010 5 Hewlett-Packard Company 5