man.dig.html revision 98b5a9d1099f72169c90de39712fc4f63e9d990e
f78b12e570284aa8291f4ca1add24937fd107403vboxsync - Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
f78b12e570284aa8291f4ca1add24937fd107403vboxsync - Copyright (C) 2000-2003 Internet Software Consortium.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync - Permission to use, copy, modify, and distribute this software for any
f78b12e570284aa8291f4ca1add24937fd107403vboxsync - purpose with or without fee is hereby granted, provided that the above
f78b12e570284aa8291f4ca1add24937fd107403vboxsync - copyright notice and this permission notice appear in all copies.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
f78b12e570284aa8291f4ca1add24937fd107403vboxsync - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
f78b12e570284aa8291f4ca1add24937fd107403vboxsync - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
f78b12e570284aa8291f4ca1add24937fd107403vboxsync - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
f78b12e570284aa8291f4ca1add24937fd107403vboxsync - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
f78b12e570284aa8291f4ca1add24937fd107403vboxsync - PERFORMANCE OF THIS SOFTWARE.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync<!-- $Id: man.dig.html,v 1.71 2008/04/09 23:06:30 tbox Exp $ -->
f78b12e570284aa8291f4ca1add24937fd107403vboxsync<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
f78b12e570284aa8291f4ca1add24937fd107403vboxsync<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
f78b12e570284aa8291f4ca1add24937fd107403vboxsync<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
f78b12e570284aa8291f4ca1add24937fd107403vboxsync<link rel="up" href="Bv9ARM.ch10.html" title="Manual pages">
f78b12e570284aa8291f4ca1add24937fd107403vboxsync<link rel="prev" href="Bv9ARM.ch10.html" title="Manual pages">
f78b12e570284aa8291f4ca1add24937fd107403vboxsync<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
f78b12e570284aa8291f4ca1add24937fd107403vboxsync<a accesskey="p" href="Bv9ARM.ch10.html">Prev</a>�</td>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync<td width="20%" align="right">�<a accesskey="n" href="man.host.html">Next</a>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync<div class="cmdsynopsis"><p><code class="command">dig</code> [@server] [<code class="option">-b <em class="replaceable"><code>address</code></em></code>] [<code class="option">-c <em class="replaceable"><code>class</code></em></code>] [<code class="option">-f <em class="replaceable"><code>filename</code></em></code>] [<code class="option">-k <em class="replaceable"><code>filename</code></em></code>] [<code class="option">-p <em class="replaceable"><code>port#</code></em></code>] [<code class="option">-q <em class="replaceable"><code>name</code></em></code>] [<code class="option">-t <em class="replaceable"><code>type</code></em></code>] [<code class="option">-x <em class="replaceable"><code>addr</code></em></code>] [<code class="option">-y <em class="replaceable"><code>[<span class="optional">hmac:</span>]name:key</code></em></code>] [<code class="option">-4</code>] [<code class="option">-6</code>] [name] [type] [class] [queryopt...]</p></div>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync<div class="cmdsynopsis"><p><code class="command">dig</code> [<code class="option">-h</code>]</p></div>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync<div class="cmdsynopsis"><p><code class="command">dig</code> [global-queryopt...] [query...]</p></div>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync<p><span><strong class="command">dig</strong></span>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync (domain information groper) is a flexible tool
f78b12e570284aa8291f4ca1add24937fd107403vboxsync for interrogating DNS name servers. It performs DNS lookups and
f78b12e570284aa8291f4ca1add24937fd107403vboxsync displays the answers that are returned from the name server(s) that
f78b12e570284aa8291f4ca1add24937fd107403vboxsync were queried. Most DNS administrators use <span><strong class="command">dig</strong></span> to
f78b12e570284aa8291f4ca1add24937fd107403vboxsync troubleshoot DNS problems because of its flexibility, ease of use and
f78b12e570284aa8291f4ca1add24937fd107403vboxsync clarity of output. Other lookup tools tend to have less functionality
f78b12e570284aa8291f4ca1add24937fd107403vboxsync than <span><strong class="command">dig</strong></span>.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync Although <span><strong class="command">dig</strong></span> is normally used with
f78b12e570284aa8291f4ca1add24937fd107403vboxsync command-line
f78b12e570284aa8291f4ca1add24937fd107403vboxsync arguments, it also has a batch mode of operation for reading lookup
f78b12e570284aa8291f4ca1add24937fd107403vboxsync requests from a file. A brief summary of its command-line arguments
f78b12e570284aa8291f4ca1add24937fd107403vboxsync and options is printed when the <code class="option">-h</code> option is given.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync Unlike earlier versions, the BIND 9 implementation of
f78b12e570284aa8291f4ca1add24937fd107403vboxsync <span><strong class="command">dig</strong></span> allows multiple lookups to be issued
f78b12e570284aa8291f4ca1add24937fd107403vboxsync command line.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync Unless it is told to query a specific name server,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync <span><strong class="command">dig</strong></span> will try each of the servers listed
f78b12e570284aa8291f4ca1add24937fd107403vboxsync When no command line arguments or options are given, will perform an
f78b12e570284aa8291f4ca1add24937fd107403vboxsync NS query for "." (the root).
f78b12e570284aa8291f4ca1add24937fd107403vboxsync It is possible to set per-user defaults for <span><strong class="command">dig</strong></span> via
f78b12e570284aa8291f4ca1add24937fd107403vboxsync <code class="filename">${HOME}/.digrc</code>. This file is read and
f78b12e570284aa8291f4ca1add24937fd107403vboxsync any options in it
f78b12e570284aa8291f4ca1add24937fd107403vboxsync are applied before the command line arguments.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync The IN and CH class names overlap with the IN and CH top level
f78b12e570284aa8291f4ca1add24937fd107403vboxsync domains names. Either use the <code class="option">-t</code> and
f78b12e570284aa8291f4ca1add24937fd107403vboxsync <code class="option">-c</code> options to specify the type and class or
f78b12e570284aa8291f4ca1add24937fd107403vboxsync use the <code class="option">-q</code> the specify the domain name or
f78b12e570284aa8291f4ca1add24937fd107403vboxsync use "IN." and "CH." when looking up these top level domains.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync A typical invocation of <span><strong class="command">dig</strong></span> looks like:
f78b12e570284aa8291f4ca1add24937fd107403vboxsync<pre class="programlisting"> dig @server name type </pre>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync<dt><span class="term"><code class="constant">server</code></span></dt>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync is the name or IP address of the name server to query. This can
f78b12e570284aa8291f4ca1add24937fd107403vboxsync address in dotted-decimal notation or an IPv6
f78b12e570284aa8291f4ca1add24937fd107403vboxsync address in colon-delimited notation. When the supplied
f78b12e570284aa8291f4ca1add24937fd107403vboxsync <em class="parameter"><code>server</code></em> argument is a
f78b12e570284aa8291f4ca1add24937fd107403vboxsync <span><strong class="command">dig</strong></span> resolves that name before
f78b12e570284aa8291f4ca1add24937fd107403vboxsync querying that name
f78b12e570284aa8291f4ca1add24937fd107403vboxsync server. If no <em class="parameter"><code>server</code></em>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync argument is provided,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync <span><strong class="command">dig</strong></span> consults <code class="filename">/etc/resolv.conf</code>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync and queries the name servers listed there. The reply from the
f78b12e570284aa8291f4ca1add24937fd107403vboxsync server that responds is displayed.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync<dt><span class="term"><code class="constant">name</code></span></dt>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync is the name of the resource record that is to be looked up.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync<dt><span class="term"><code class="constant">type</code></span></dt>
f78b12e570284aa8291f4ca1add24937fd107403vboxsync indicates what type of query is required —
f78b12e570284aa8291f4ca1add24937fd107403vboxsync ANY, A, MX, SIG, etc.
f78b12e570284aa8291f4ca1add24937fd107403vboxsync <em class="parameter"><code>type</code></em> can be any valid query
f78b12e570284aa8291f4ca1add24937fd107403vboxsync type. If no
f78b12e570284aa8291f4ca1add24937fd107403vboxsync <em class="parameter"><code>type</code></em> argument is supplied,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync <span><strong class="command">dig</strong></span> will perform a lookup for an
<em class="parameter"><code>type</code></em> arguments. <span><strong class="command">dig</strong></span>
looked up using nibble format under the IP6.ARPA domain.
To use the older RFC1886 method using the IP6.INT domain
<span><strong class="command">key</strong></span> and <span><strong class="command">server</strong></span> statements in
<em class="parameter"><code>name</code></em> to <em class="parameter"><code>D</code></em> for it to be