dig.docbook revision 3389b6215abbffc02cc1b6e640f05987ca9f816f
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.0//EN"
9210d8796eaf4125ac58c034f9b5ca167857a55aAutomatic Updater "http://www.oasis-open.org/docbook/xml/4.0/docbookx.dtd"
9210d8796eaf4125ac58c034f9b5ca167857a55aAutomatic Updater [<!ENTITY mdash "—">]>
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater - Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt - Copyright (C) 2000-2003 Internet Software Consortium.
9210d8796eaf4125ac58c034f9b5ca167857a55aAutomatic Updater - Permission to use, copy, modify, and distribute this software for any
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt - purpose with or without fee is hereby granted, provided that the above
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt - copyright notice and this permission notice appear in all copies.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
e2e4d321999340802f77adaacd19c797d04b4b95Automatic Updater - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt - PERFORMANCE OF THIS SOFTWARE.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt<!-- $Id: dig.docbook,v 1.26 2005/08/30 00:45:08 marka Exp $ -->
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <refentryinfo>
e2e4d321999340802f77adaacd19c797d04b4b95Automatic Updater </refentryinfo>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <refnamediv>
e2e4d321999340802f77adaacd19c797d04b4b95Automatic Updater <refpurpose>DNS lookup utility</refpurpose>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt </copyright>
d2ebd5d5fba00a44ca49462c6cd4390e9876a137Automatic Updater <holder>Internet Software Consortium.</holder>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt </copyright>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <refsynopsisdiv>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <cmdsynopsis>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <arg><option>-b <replaceable class="parameter">address</replaceable></option></arg>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <arg><option>-f <replaceable class="parameter">filename</replaceable></option></arg>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <arg><option>-k <replaceable class="parameter">filename</replaceable></option></arg>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <arg><option>-p <replaceable class="parameter">port#</replaceable></option></arg>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <arg><option>-q <replaceable class="parameter">name</replaceable></option></arg>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <arg><option>-t <replaceable class="parameter">type</replaceable></option></arg>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <arg><option>-x <replaceable class="parameter">addr</replaceable></option></arg>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <arg><option>-y <replaceable class="parameter">name:key</replaceable></option></arg>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt </cmdsynopsis>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <cmdsynopsis>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt </cmdsynopsis>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <arg choice="opt" rep="repeat">global-queryopt</arg>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt </cmdsynopsis>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt </refsynopsisdiv>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt (domain information groper) is a flexible tool
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt for interrogating DNS name servers. It performs DNS lookups and
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt displays the answers that are returned from the name server(s) that
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt were queried. Most DNS administrators use <command>dig</command> to
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt troubleshoot DNS problems because of its flexibility, ease of use and
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt clarity of output. Other lookup tools tend to have less functionality
7ae7246a6339bb3a79ffc9f2f9c486de9a2bf65eAutomatic Updater Although <command>dig</command> is normally used with
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt arguments, it also has a batch mode of operation for reading lookup
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt requests from a file. A brief summary of its command-line arguments
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt and options is printed when the <option>-h</option> option is given.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt Unlike earlier versions, the BIND9 implementation of
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <command>dig</command> allows multiple lookups to be issued
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt command line.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt Unless it is told to query a specific name server,
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <command>dig</command> will try each of the servers listed
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt When no command line arguments or options are given, will perform an
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt NS query for "." (the root).
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater It is possible to set per-user defaults for <command>dig</command> via
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater <filename>${HOME}/.digrc</filename>. This file is read and
7ae7246a6339bb3a79ffc9f2f9c486de9a2bf65eAutomatic Updater any options in it
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater are applied before the command line arguments.
7ae7246a6339bb3a79ffc9f2f9c486de9a2bf65eAutomatic Updater A typical invocation of <command>dig</command> looks like:
7ae7246a6339bb3a79ffc9f2f9c486de9a2bf65eAutomatic Updater <programlisting> dig @server name type </programlisting>
7ae7246a6339bb3a79ffc9f2f9c486de9a2bf65eAutomatic Updater <variablelist>
2cbb4ab75757fbb656997a82c14ca07db37d481aAutomatic Updater <varlistentry>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt is the name or IP address of the name server to query. This can
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt address in dotted-decimal notation or an IPv6
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt address in colon-delimited notation. When the supplied
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt querying that name
e2e4d321999340802f77adaacd19c797d04b4b95Automatic Updater argument is provided,
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <command>dig</command> consults <filename>/etc/resolv.conf</filename>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt and queries the name servers listed there. The reply from the
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt server that responds is displayed.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt </varlistentry>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <varlistentry>
e2e4d321999340802f77adaacd19c797d04b4b95Automatic Updater is the name of the resource record that is to be looked up.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt </varlistentry>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <varlistentry>
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt indicates what type of query is required —
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt ANY, A, MX, SIG, etc.
76786c2904942b708d8a7a4659df74da5dc9446eEvan Hunt <parameter>type</parameter> can be any valid query
looked up using nibble format under the IP6.ARPA domain.
To use the older RFC1886 method using the IP6.INT domain