dig.1m (2010 09)

d
dig(1M) dig(1M)
(BIND 9.3)
NAME
dig - domain information groper
SYNOPSIS
Single Query
dig [@server][-4
|-6][-b address[#port]] [-c class ][
-f filename ][-i][-k filename ][
-p port ]
[
-t type ][-x
addr][-y name:key][name][type ][class ][queryopt ]...
Help
dig -h
Multiple Query
dig [global-queryopt]... [query ]...
DESCRIPTION
dig, the 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 servers 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: a simple command-line mode for
single or multiple queries and a batch mode for reading lookup requests from a file (
-f option).
Unless it is told to query a specific name server (
@server option), dig
tries each of the servers listed in
/etc/resolv.conf.
When no command line arguments or options are given, dig performs an NS query for . (the root).
A simple, typical invocation of
dig looks like:
dig @server name type
Options
Options can be specified in any order.
@server Use server as the name server to query. server can be a host name, an IPv4 address in dotted-
decimal notation, or an IPv6 address in colon-delimited notation. When server is a host name,
dig resolves that name before querying that name server. If @server is omitted, dig queries
the name servers listed in /etc/resolv.conf
. The reply from the name server that
responds is displayed.
-4 Use the IPv4 query transport only.
-6 Use the IPv6 query transport only.
-b address[#port]
Set the source IP address of the query to address . This must be a valid address on one of the
host’s network interfaces or 0.0.0.0 or ::. An optional port on the source may be specified
by appending #port.
-c class Set the query class. The default is IN, for Internet. class can also be HS, for Hesiod records,
or CH, for Chaosnet records.
-f filename
Make dig operate in batch mode by reading a list of lookup requests to process from the file
filename . The file contains a number of queries, one per line. Each entry in the file should be
organized in the same way it would be presented as a query to dig using the command-line
interface.
-h Display the annotated syntax for the command. If other options or operands are specified,
they are ignored.
-i Look up IPv6 addresses using the older IP6.INT domain, described in RFC 1886. See the -x
option.
-k filename
Specify a TSIG key file in order to sign the DNS queries sent by dig and their responses using
transaction signatures (TSIG).
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (6 pages)