Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

Administrator Commands and Files dig(8)
NAME
dig - BIND 9 Domain Name System (DNS) server lookup utility
SYNOPSIS
/etc/dns_secure/dig [global_queryopt ... ]
[@server ]
[-b address[#port ]]
[-c class ]
[-f lename1 ]
[-h ]
[-k lename2 ]
[-p port# ]
[-t type ]
[-x addr ]
[-y name:key ]
[-4 | -6 ]
[name ]
[type ]
[class ]
[queryopt ... ]
FLAGS
When no command line ags, arguments, or options are given, dig performs an NS query for the .
(root) server.
-b address[#port ]
Sets the source IP address of the query to address. address must be a valid
address on one of the hosts network interfaces or 0.0.0.0 or ::. An optional port
can be specied by appending #port.
-c class Overrides the default query class (IN for Internet). class is a mnemonic for any
valid class, such as HS for Hesiod records or CH for CHAOSNET records.
-f filename1 Makes dig operate in batch mode by reading a list of lookup requests to process
from the le lename1. The le contains one or more queries, one per line.
Each entry in the le should be organized in the same way it would be presented
as a query to dig using the command-line interface.
-h Prints a brief description of command-line ags and options.
-k filename2 Signs the DNS queries sent by dig and their responses using transaction signa-
tures (TSIG) in the TSIG key le lename2.
When using TSIG authentication with dig, the name server that is queried needs
to know the key and algorithm that is being used. In BIND 9, this is done by
providing appropriate key and server statements in the named.conf le.
-p port# Queries a nonstandard port number. port# is the port number that dig sends its
queries to instead of the standard DNS port number 53.
This option is used to test a name server that has been congured to listen for
queries on a nonstandard port number.
-t type Sets the query type to type. type can be any valid query type which is supported
in BIND 9. The default query type is A, unless the -x ag is supplied to indicate
a reverse lookup.
A zone transfer can be requested by specifying a type of AXFR.
527188-007 Hewlett-Packard Company 127