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