HP-UX Reference (11i v2 04/09) - 1M System Administration Commands A-M (vol 3)
d
dig(1M) dig(1M)
NAME
dig - domain information groper
SYNOPSIS
dig [@server][options ] domain [query-type ][query-class ][query-options]
dig [@global-server][global-d-options] domain [
@server][options][q-options ][q-type][q-class ]
[domain [
@server ][options][q-options ][q-type ][q-class ][...]]
DESCRIPTION
dig (domain information groper) is a flexible tool for interrogating Domain Name System (DNS) servers.
It performs DNS lookups and displays the answers that are returned from the name server(s) that were
queried. Most DNS administrators use
dig to troubleshoot DNS problems because of its flexibility, ease
of use, and clarity of output. The
dig
command has two modes: simple command-line mode for single or
multiple queries and batch mode for reading lookup requests from a file.
Arguments
dig accepts the following arguments:
@server Specifies the DNS server that is queried in each query. If a specific name server is not pro-
vided, dig will try each of the servers listed in
/etc/resolv.conf
.
@global-server
Specifies the name of the server that is used in multiple queries to provide a single server for
all the queries.
domain Specifies the domain name to look up.
query-type
Specifies the resource record types for DNS queries and responses. The textual representation
is used in master files. The binary representation is used in DNS queries and responses. The
resource record types are:
a a host address (dotted quad). This is the default value for query-type .
AAAA resource record type for IPv6 queries.
any request data of any type for a name.
axfr a request for a transfer of an entire zone.
hinfo host information.
mx a mail exchange.
ns an authoritative name server.
soa marks the start of a zone of authority.
txt text strings.
Ensure that you use
ixfr=version for type ixfr. ixfr transfers only the
incremental/changed data to the slave servers when the data in the master server changes.
query-class
Classes are the fields that appear in resource records. The values defined for a class are:
IN
(Internet), CS (CSNET), CH (CHAOS), and HS (Hesiod). The default value for query-class is
IN.
query-option
Query options affect the way in which lookups are made and how the results are displayed.
Each query option is identified by a keyword preceded by a
+[no] See the "Query Options" sub-
section below for details.
global-d-opt
Global domain query options control the lookup and display of results for multiple queries and
affect all queries. Note that query options set globally can be overwritten by query options set
for each individual query.
options
-b This option is used to set the source IP address of the query to address. This must be a
valid address on one of the host’s network interfaces.
Section 1M−−140 Hewlett-Packard Company − 1 − HP-UX 11i Version 2: September 2004