HP B2355-92068 Administration Manual page 184

System administration commands
Table of Contents

Advertisement

dig(1M)
+
[
no
]
all
Set or clear all display flags.
+time=
T
Set the timeout for a query to T seconds. The default timeout is 5 seconds, and 1 second is the
minimum value to which T can be set. Even if you try setting T to a value less than 1, T will be
set to 1 second.
+tries=
A
This option sets the number of times to retry UDP queries to server to A instead of the default,
3. If A is less than or equal to zero, then the number of retries is set to 1.
D
+ndots=
d
Set the number of dots that appear in hostname to D. The default value is to use either the
ndots
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
+bufsize=
Set the UDP message buffer size advertised using EDNS0 to B bytes. The maximum and
minimum sizes of this buffer are 65535 and 0 respectively. If the B size is specified outside of
this range, then the size is rounded up or down appropriately.
Multiple Queries
allows multiple queries on the command line (in addition to supporting the
dig
of those queries can be supplied with its own set of options, query class, query type and query options.
A global set of query options, which should be applied to all queries can also be supplied via global-d-
options.
These global query options must precede the first set of domain, class, type, options, and query options sup-
plied on the command line. Any global query options can be overridden by a query-specific set of query
options for each individual query.
For example:
dig +qr www.bind.org any -x 127.0.0.1 bind.org ns +noqr
shows how
www.bind.org any
-x 127.0.0.1
bind.org ns +noqr
EXAMPLES
1.
To look up information about domain
host address
/usr/bin/dig
a.example.com @10.53.0.2 a
2.
To query
records:
/usr/bin/dig +tcp +noadd +nosea +nostat +noquest +nocmd +noauth -p
5300
3.
To request a transfer:
/usr/bin/dig
example.com @10.53.0.2 axfr -p 5300
4.
To request a transfer with Transaction Signature (TSIG):
/usr/bin/dig
tsigzone.com
184
Hewlett-Packard Company
statement in
/etc/resolv.conf
B
dig
can be used from the command line to make three lookups:
An ANY query for domain name www.bind.org.
A reverse lookup of 127.0.0.1
A name server lookup for domain bind.org, suppressing the query display for this query
only (+noqr).
records:
a
+tcp
+noadd
using DNS-Server
a.example.com
a.example.com @10.53.0.2 a
+tcp
+noadd
+tcp
+noadd
@10.53.0.3
or 1 if no
ndots
/etc/resolv.conf
using DNS-Server
a.example.com
+nosea
+nostat
+noquest
without authentication, asking for
10.53.0.2
+nosea
+nostat
+nosea
+nostat
axfr
-y tsigzone.com:1234abcd8765 -p 5300
− 4 −
HP-UX 11i Version 2: December 2007 Update
dig(1M)
statement is present. Names
file.
batch file option). Each
-f
asking for
10.53.0.2
+nocmd
-p
+noquest
+nocomm
+noquest
+nocomm
5300
a
+nocmd
+nocmd

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp-ux 11i

Table of Contents