dig.html revision fb84f9014321c5f33c4682de5661b579fcde318f
ca41b452ede6feaa9d8739ec3cae19389a7b0d03Bob Halley - Copyright (C) 2000, 2001 Internet Software Consortium.
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graff - Permission to use, copy, modify, and distribute this software for any
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graff - purpose with or without fee is hereby granted, provided that the above
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graff - copyright notice and this permission notice appear in all copies.
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graff - THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graff - DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graff - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graff - INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graff - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graff - FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graff - NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graff - WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael GraffNAME="GENERATOR"
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael GraffCONTENT="Modular DocBook HTML Stylesheet Version 1.61
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael GraffCLASS="REFENTRY"
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael GraffBGCOLOR="#FFFFFF"
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael GraffTEXT="#000000"
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael GraffLINK="#0000FF"
7df0472d8a76c83d2137bd9549414a30787d58cfBrian WellingtonVLINK="#840084"
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael GraffALINK="#0000FF"
74889a341cac183d477e15cfead391a8f7bdba95Michael GraffCLASS="REFNAMEDIV"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael Graff>dig -- DNS lookup utility</DIV
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="REFSYNOPSISDIV"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="COMMAND"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael Graff> [@server] [<TT
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="OPTION"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="REPLACEABLE"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="OPTION"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="REPLACEABLE"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="OPTION"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="REPLACEABLE"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="OPTION"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="REPLACEABLE"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="OPTION"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="REPLACEABLE"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="OPTION"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="REPLACEABLE"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="OPTION"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="REPLACEABLE"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="OPTION"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="REPLACEABLE"
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael Graff>] [name] [type] [class] [queryopt...]</P
c05e003dce672b2f8555a3e56857f29ce89c1677Michael GraffCLASS="COMMAND"
c05e003dce672b2f8555a3e56857f29ce89c1677Michael GraffCLASS="OPTION"
c05e003dce672b2f8555a3e56857f29ce89c1677Michael GraffCLASS="COMMAND"
c05e003dce672b2f8555a3e56857f29ce89c1677Michael Graff> [global-queryopt...] [query...]</P
c05e003dce672b2f8555a3e56857f29ce89c1677Michael GraffCLASS="REFSECT1"
c05e003dce672b2f8555a3e56857f29ce89c1677Michael Graff>DESCRIPTION</H2
c05e003dce672b2f8555a3e56857f29ce89c1677Michael GraffCLASS="COMMAND"
c05e003dce672b2f8555a3e56857f29ce89c1677Michael Graff> (domain information groper) is a flexible tool
c05e003dce672b2f8555a3e56857f29ce89c1677Michael Grafffor interrogating DNS name servers. It performs DNS lookups and
c05e003dce672b2f8555a3e56857f29ce89c1677Michael Graffdisplays the answers that are returned from the name server(s) that
c05e003dce672b2f8555a3e56857f29ce89c1677Michael Graffwere queried. Most DNS administrators use <B
c05e003dce672b2f8555a3e56857f29ce89c1677Michael GraffCLASS="COMMAND"
c05e003dce672b2f8555a3e56857f29ce89c1677Michael Grafftroubleshoot DNS problems because of its flexibility, ease of use and
c05e003dce672b2f8555a3e56857f29ce89c1677Michael Graffclarity of output. Other lookup tools tend to have less functionality
7dbf5a0b64237aa3052f04f4c8f7d56be8ec5d79Michael GraffCLASS="COMMAND"
7dbf5a0b64237aa3052f04f4c8f7d56be8ec5d79Michael GraffCLASS="COMMAND"
7dbf5a0b64237aa3052f04f4c8f7d56be8ec5d79Michael Graff> is normally used with command-line
291b0d910d115e41a4b69d0603c3376aebf0c630Michael Graffarguments, it also has a batch mode of operation for reading lookup
e24f605ad64182532640dc6721070456b13112d5Michael Graffrequests from a file. A brief summary of its command-line arguments
7dbf5a0b64237aa3052f04f4c8f7d56be8ec5d79Michael Graffand options is printed when the <TT
7dbf5a0b64237aa3052f04f4c8f7d56be8ec5d79Michael GraffCLASS="OPTION"
291b0d910d115e41a4b69d0603c3376aebf0c630Michael Graff> option is given.
7dbf5a0b64237aa3052f04f4c8f7d56be8ec5d79Michael GraffUnlike earlier versions, the BIND9 implementation of
4e675038a097065ff13944232cd7c89ac5961984Michael GraffCLASS="COMMAND"
4e675038a097065ff13944232cd7c89ac5961984Michael Graff> allows multiple lookups to be issued from the
4e675038a097065ff13944232cd7c89ac5961984Michael Graffcommand line.</P
4e675038a097065ff13944232cd7c89ac5961984Michael Graff>Unless it is told to query a specific name server,
291b0d910d115e41a4b69d0603c3376aebf0c630Michael GraffCLASS="COMMAND"
291b0d910d115e41a4b69d0603c3376aebf0c630Michael Graff> will try each of the servers listed in
291b0d910d115e41a4b69d0603c3376aebf0c630Michael GraffCLASS="FILENAME"
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff>When no command line arguments or options are given, will perform an
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael GraffNS query for "." (the root).</P
e24f605ad64182532640dc6721070456b13112d5Michael GraffCLASS="REFSECT1"
d736db6dc53e615e3f2d66d1ddbe28473694d107Michael Graff>SIMPLE USAGE</H2
291b0d910d115e41a4b69d0603c3376aebf0c630Michael Graff>A typical invocation of <B
7dbf5a0b64237aa3052f04f4c8f7d56be8ec5d79Michael GraffCLASS="COMMAND"
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael GraffCLASS="PROGRAMLISTING"
e24f605ad64182532640dc6721070456b13112d5Michael Graff> dig @server name type </PRE
e24f605ad64182532640dc6721070456b13112d5Michael GraffCLASS="VARIABLELIST"
e24f605ad64182532640dc6721070456b13112d5Michael GraffCLASS="CONSTANT"
e24f605ad64182532640dc6721070456b13112d5Michael Graff>is the name or IP address of the name server to query. An IPv4
e24f605ad64182532640dc6721070456b13112d5Michael Graffaddress can be provided in dotted-decimal notation. When the supplied
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael GraffCLASS="PARAMETER"
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael Graff> argument is a hostname,
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael GraffCLASS="COMMAND"
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael Graff> resolves that name before querying that name
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael Graffserver. If no <TT
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael GraffCLASS="PARAMETER"
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael Graff> argument is provided,
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael GraffCLASS="COMMAND"
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael Graff> consults <TT
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael GraffCLASS="FILENAME"
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael Graffand queries the name servers listed there. The reply from the name
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael Graffserver that responds is displayed.</P
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael GraffCLASS="CONSTANT"
7dbf5a0b64237aa3052f04f4c8f7d56be8ec5d79Michael Graff>is the name of the resource record that is to be looked up.</P
74889a341cac183d477e15cfead391a8f7bdba95Michael GraffCLASS="CONSTANT"
7dbf5a0b64237aa3052f04f4c8f7d56be8ec5d79Michael Graff>indicates what type of query is required —
7dbf5a0b64237aa3052f04f4c8f7d56be8ec5d79Michael GraffANY, A, MX, SIG, etc.
74889a341cac183d477e15cfead391a8f7bdba95Michael GraffCLASS="PARAMETER"
74889a341cac183d477e15cfead391a8f7bdba95Michael Graff> can be any valid query type. If no
7dbf5a0b64237aa3052f04f4c8f7d56be8ec5d79Michael GraffCLASS="PARAMETER"
74889a341cac183d477e15cfead391a8f7bdba95Michael Graff> argument is supplied,
2311073ce0ef26c0250e91e4a083d7cc94fa7d33Michael GraffCLASS="COMMAND"
7dbf5a0b64237aa3052f04f4c8f7d56be8ec5d79Michael Graff> will perform a lookup for an A record.</P
2311073ce0ef26c0250e91e4a083d7cc94fa7d33Michael GraffCLASS="REFSECT1"
e24f605ad64182532640dc6721070456b13112d5Michael GraffCLASS="OPTION"
2311073ce0ef26c0250e91e4a083d7cc94fa7d33Michael Graff> option sets the source IP address of the query
2311073ce0ef26c0250e91e4a083d7cc94fa7d33Michael GraffCLASS="PARAMETER"
e24f605ad64182532640dc6721070456b13112d5Michael Graff>. This must be a valid address on
e24f605ad64182532640dc6721070456b13112d5Michael Graffone of the host's network interfaces.</P
2311073ce0ef26c0250e91e4a083d7cc94fa7d33Michael Graff>The default query class (IN for internet) is overridden by the
e4f074a2c2340ea80099beebecc3b89aa234fa8fMichael GraffCLASS="OPTION"
ae7d0a4375abaecfd5c5b0816616d9882831e69bMichael GraffCLASS="PARAMETER"
a3ab70dae26d009bf78b0594b2ab5eb9208f4b91Michael Graff> is any valid
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