dig.html revision 61e1dc26d62c2a0059e3ca7efe2ad0f4a5b8df92
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington - Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington - Copyright (C) 2000-2003 Internet Software Consortium.
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington - Permission to use, copy, modify, and distribute this software for any
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington - purpose with or without fee is hereby granted, provided that the above
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington - copyright notice and this permission notice appear in all copies.
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
bac066aba91585304ce46b92b923c344ab8d2150Phill Cunnington - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington - PERFORMANCE OF THIS SOFTWARE.
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington<!-- $Id: dig.html,v 1.15 2004/04/07 00:56:59 marka Exp $ -->
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonNAME="GENERATOR"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCONTENT="Modular DocBook HTML Stylesheet Version 1.73
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="REFENTRY"
dfc4e0fc3052835b2a069aa9d869fa1161c33fe6Peter MajorBGCOLOR="#FFFFFF"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonTEXT="#000000"
bac066aba91585304ce46b92b923c344ab8d2150Phill CunningtonLINK="#0000FF"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonVLINK="#840084"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonALINK="#0000FF"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="REFNAMEDIV"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington>dig -- DNS lookup utility</DIV
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="REFSYNOPSISDIV"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="COMMAND"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington> [@server] [<TT
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="OPTION"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="REPLACEABLE"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="OPTION"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="REPLACEABLE"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="OPTION"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="REPLACEABLE"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="OPTION"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="REPLACEABLE"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="OPTION"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="REPLACEABLE"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="OPTION"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="REPLACEABLE"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="OPTION"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="REPLACEABLE"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="OPTION"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="REPLACEABLE"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington>] [name] [type] [class] [queryopt...]</P
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="COMMAND"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="OPTION"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="COMMAND"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington> [global-queryopt...] [query...]</P
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="REFSECT1"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington>DESCRIPTION</H2
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="COMMAND"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington> (domain information groper) is a flexible tool
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonfor interrogating DNS name servers. It performs DNS lookups and
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtondisplays the answers that are returned from the name server(s) that
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonwere queried. Most DNS administrators use <B
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="COMMAND"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtontroubleshoot DNS problems because of its flexibility, ease of use and
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonclarity of output. Other lookup tools tend to have less functionality
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="COMMAND"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="COMMAND"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington> is normally used with command-line
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonarguments, it also has a batch mode of operation for reading lookup
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonrequests from a file. A brief summary of its command-line arguments
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonand options is printed when the <TT
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="OPTION"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington> option is given.
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonUnlike earlier versions, the BIND9 implementation of
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="COMMAND"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington> allows multiple lookups to be issued from the
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtoncommand line.</P
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington>Unless it is told to query a specific name server,
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="COMMAND"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington> will try each of the servers listed in
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="FILENAME"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington>When no command line arguments or options are given, will perform an
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonNS query for "." (the root).</P
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington>It is possible to set per-user defaults for <B
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="COMMAND"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="FILENAME"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington>${HOME}/.digrc</TT
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington>. This file is read and any options in it
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonare applied before the command line arguments.</P
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="REFSECT1"
bac066aba91585304ce46b92b923c344ab8d2150Phill Cunnington>SIMPLE USAGE</H2
3c68a9340994f97a27e00efee146a9478dc12f9cDavid Luna>A typical invocation of <B
3c68a9340994f97a27e00efee146a9478dc12f9cDavid LunaCLASS="COMMAND"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="PROGRAMLISTING"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington> dig @server name type </PRE
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="VARIABLELIST"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="CONSTANT"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington>is the name or IP address of the name server to query. This can be an IPv4
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonaddress in dotted-decimal notation or an IPv6
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonaddress in colon-delimited notation. When the supplied
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="PARAMETER"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington> argument is a hostname,
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="COMMAND"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington> resolves that name before querying that name
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonserver. If no <TT
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="PARAMETER"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington> argument is provided,
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="COMMAND"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington> consults <TT
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="FILENAME"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonand queries the name servers listed there. The reply from the name
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonserver that responds is displayed.</P
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="CONSTANT"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington>is the name of the resource record that is to be looked up.</P
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="CONSTANT"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington>indicates what type of query is required —
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonANY, A, MX, SIG, etc.
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="PARAMETER"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington> can be any valid query type. If no
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="PARAMETER"
3c68a9340994f97a27e00efee146a9478dc12f9cDavid Luna> argument is supplied,
3c68a9340994f97a27e00efee146a9478dc12f9cDavid LunaCLASS="COMMAND"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington> will perform a lookup for an A record.</P
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="REFSECT1"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="OPTION"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington> option sets the source IP address of the query
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="PARAMETER"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington>. This must be a valid address on
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonone of the host's network interfaces or "0.0.0.0" or "::". An optional port
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonmay be specified by appending "#<port>"</P
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington>The default query class (IN for internet) is overridden by the
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="OPTION"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="PARAMETER"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington> is any valid
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonclass, such as HS for Hesiod records or CH for CHAOSNET records.</P
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="OPTION"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington> option makes <B
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="COMMAND"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonin batch mode by reading a list of lookup requests to process from the
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill CunningtonCLASS="PARAMETER"
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunnington>. The file contains a number of
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonqueries, one per line. Each entry in the file should be organised in
9470f6b5e11719100cdb2fef604888d5ca4fd384Phill Cunningtonthe same way they would be presented as queries to
looked up using nibble format under the IP6.ARPA domain.
To use the older RFC1886 method using the IP6.INT domain