dig.html revision 8de7014e56565605a51898a2a33a8b08fd3f1e57
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore - Copyright (C) 2000, 2001 Internet Software Consortium.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore - Permission to use, copy, modify, and distribute this software for any
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore - purpose with or without fee is hereby granted, provided that the above
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore - copyright notice and this permission notice appear in all copies.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore - THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore - DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore - INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore - FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore - NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore - WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreNAME="GENERATOR"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCONTENT="Modular DocBook HTML Stylesheet Version 1.61
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="REFENTRY"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreBGCOLOR="#FFFFFF"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreTEXT="#000000"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreLINK="#0000FF"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreVLINK="#840084"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreALINK="#0000FF"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="REFNAMEDIV"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amore>dig -- DNS lookup utility</DIV
028efd1c560953673904369fe3f2592de7103b8cGarrett D'AmoreCLASS="REFSYNOPSISDIV"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="COMMAND"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore> [@server] [<TT
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="OPTION"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="REPLACEABLE"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="OPTION"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="REPLACEABLE"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="OPTION"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="REPLACEABLE"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="OPTION"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="REPLACEABLE"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="OPTION"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="REPLACEABLE"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="OPTION"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="REPLACEABLE"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="OPTION"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="REPLACEABLE"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="OPTION"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="REPLACEABLE"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore>] [name] [type] [class] [queryopt...]</P
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="COMMAND"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="OPTION"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="COMMAND"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore> [global-queryopt...] [query...]</P
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="REFSECT1"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amore>DESCRIPTION</H2
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="COMMAND"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amore> (domain information groper) is a flexible tool
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amorefor interrogating DNS name servers. It performs DNS lookups and
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amoredisplays the answers that are returned from the name server(s) that
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amorewere queried. Most DNS administrators use <B
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="COMMAND"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amoretroubleshoot DNS problems because of its flexibility, ease of use and
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amoreclarity of output. Other lookup tools tend to have less functionality
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="COMMAND"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="COMMAND"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amore> is normally used with command-line
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amorearguments, it also has a batch mode of operation for reading lookup
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amorerequests from a file. A brief summary of its command-line arguments
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amoreand options is printed when the <TT
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="OPTION"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amore> option is given.
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreUnlike earlier versions, the BIND9 implementation of
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="COMMAND"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amore> allows multiple lookups to be issued from the
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amorecommand line.</P
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amore>Unless it is told to query a specific name server,
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="COMMAND"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amore> will try each of the servers listed in
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="FILENAME"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amore>When no command line arguments or options are given, will perform an
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreNS query for "." (the root).</P
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="REFSECT1"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore>SIMPLE USAGE</H2
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amore>A typical invocation of <B
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="COMMAND"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="PROGRAMLISTING"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore> dig @server name type </PRE
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="VARIABLELIST"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="CONSTANT"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore>is the name or IP address of the name server to query. An IPv4
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreaddress can be provided in dotted-decimal notation. When the supplied
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="PARAMETER"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore> argument is a hostname,
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="COMMAND"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore> resolves that name before querying that name
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amoreserver. If no <TT
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="PARAMETER"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore> argument is provided,
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'AmoreCLASS="COMMAND"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore> consults <TT
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="FILENAME"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amoreand queries the name servers listed there. The reply from the name
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amoreserver that responds is displayed.</P
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="CONSTANT"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore>is the name of the resource record that is to be looked up.</P
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="CONSTANT"
88447a05f537aabe9a1bc3d5313f22581ec992a7Garrett D'Amore>indicates what type of query is required —
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreANY, A, MX, SIG, etc.
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="PARAMETER"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amore> can be any valid query type. If no
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreCLASS="PARAMETER"
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amore> argument is supplied,
looked up using the IP6.ARPA domain and binary labels as defined in
RFC2874. To use the older RFC1886 method using the IP6.INT domain and