mdig.html revision e285c11870c6263cd79b418e104c7eb3e2d96952
6e89f0a006cdbb50151504b3107096e365136687Jenny Han Donnelly - Copyright (C) 2015, 2016 Internet Systems Consortium, Inc. ("ISC")
6e89f0a006cdbb50151504b3107096e365136687Jenny Han Donnelly - Permission to use, copy, modify, and/or distribute this software for any
6e89f0a006cdbb50151504b3107096e365136687Jenny Han Donnelly - purpose with or without fee is hereby granted, provided that the above
6e89f0a006cdbb50151504b3107096e365136687Jenny Han Donnelly - copyright notice and this permission notice appear in all copies.
c28f85fdfe5f4318a887f384ac1e58d40414fdbaLuke Smith - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
6e89f0a006cdbb50151504b3107096e365136687Jenny Han Donnelly - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
6e89f0a006cdbb50151504b3107096e365136687Jenny Han Donnelly - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
6e89f0a006cdbb50151504b3107096e365136687Jenny Han Donnelly - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
6e89f0a006cdbb50151504b3107096e365136687Jenny Han Donnelly - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly - PERFORMANCE OF THIS SOFTWARE.
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry">
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly<a name="man.mdig"></a><div class="titlepage"></div>
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly<p><span class="application">mdig</span> — DNS pipelined lookup utility</p>
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly<div class="cmdsynopsis"><p><code class="command">mdig</code> {@server} [<code class="option">-f <em class="replaceable"><code>filename</code></em></code>] [<code class="option">-h</code>] [<code class="option">-v</code>] [<code class="option">-4</code>] [<code class="option">-6</code>] [<code class="option">-b <em class="replaceable"><code>address</code></em></code>] [<code class="option">-p <em class="replaceable"><code>port#</code></em></code>] [<code class="option">-c <em class="replaceable"><code>class</code></em></code>] [<code class="option">-t <em class="replaceable"><code>type</code></em></code>] [<code class="option">-i</code>] [<code class="option">-x <em class="replaceable"><code>addr</code></em></code>] [plusopt...]</p></div>
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly<div class="cmdsynopsis"><p><code class="command">mdig</code> {-h}</p></div>
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly<div class="cmdsynopsis"><p><code class="command">mdig</code> [@server] {global-opt...} {
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly {local-opt...}
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly<p><span class="command"><strong>mdig</strong></span>
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly is a multiple/pipelined query version of <span class="command"><strong>dig</strong></span>:
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly instead of waiting for a response after sending each query,
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly it begins by sending all queries. Responses are displayed in
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly the order in which they are received, not in the order the
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly corresponding queries were sent.
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly <span class="command"><strong>mdig</strong></span> options are a subset of the
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly <span class="command"><strong>dig</strong></span> options, and are divided into "anywhere
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly options" which can occur anywhere, "global options" which must
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly occur before the query name (or they are ignored with a warning),
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly and "local options" which apply to the next query on the command
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly The {@server} option is a mandatory global
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly option. It is the name or IP address of the name server to query.
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly (Unlike <span class="command"><strong>dig</strong></span>, this value is not retrieved from
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly <code class="filename">/etc/resolv.conf</code>.) It can be an IPv4 address
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly in dotted-decimal notation, an IPv6 address in colon-delimited
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly notation, or a hostname. When the supplied
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly <em class="parameter"><code>server</code></em> argument is a hostname,
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly <span class="command"><strong>mdig</strong></span> resolves that name before querying
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly the name server.
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly<p><span class="command"><strong>mdig</strong></span>
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly provides a number of query options which affect
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly the way in which lookups are made and the results displayed. Some of
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly these set or reset flag bits in the query header, some determine which
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly sections of the answer get printed, and others determine the timeout
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly and retry strategies.
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly Each query option is identified by a keyword preceded by a plus
6e89f0a006cdbb50151504b3107096e365136687Jenny Han Donnelly sign (<code class="literal">+</code>). Some keywords set or reset an
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly option. These may be preceded by the string <code class="literal">no</code>
6e89f0a006cdbb50151504b3107096e365136687Jenny Han Donnelly to negate the meaning of that keyword. Other keywords assign
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly values to options like the timeout interval. They have the
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly form <code class="option">+keyword=value</code>.
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly<a name="id-1.8"></a><h2>ANYWHERE OPTIONS</h2>
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly The <code class="option">-f</code> option makes <span class="command"><strong>mdig</strong></span>
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly operate in batch mode by reading a list of lookup requests to
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly process from the file <em class="parameter"><code>filename</code></em>. The file
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly contains a number of queries, one per line. Each entry in the
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly file should be organized in the same way they would be presented
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly as queries to <span class="command"><strong>mdig</strong></span> using the command-line interface.
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly The <code class="option">-h</code> causes <span class="command"><strong>mdig</strong></span> to
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly print the detailed help with the full list of options and exit.
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly The <code class="option">-v</code> causes <span class="command"><strong>mdig</strong></span> to
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly print the version number and exit.
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly The <code class="option">-4</code> option forces <span class="command"><strong>mdig</strong></span> to
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly only use IPv4 query transport.
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly The <code class="option">-6</code> option forces <span class="command"><strong>mdig</strong></span> to
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly only use IPv6 query transport.
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly The <code class="option">-b</code> option sets the source IP address of the
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly query to <em class="parameter"><code>address</code></em>. This must be a valid
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly address on one of the host's network interfaces or "0.0.0.0" or
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly "::". An optional port may be specified by appending
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly "#<port>"
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly The <code class="option">-p</code> option is used when a non-standard port
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly number is to be queried.
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly <em class="parameter"><code>port#</code></em> is the port number
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly that <span class="command"><strong>mdig</strong></span> will send its queries instead of
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly the standard DNS port number 53. This option would be used to
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly test a name server that has been configured to listen for
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly queries on a non-standard port number.
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly The global query options are:
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly<div class="variablelist"><dl class="variablelist">
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly<dt><span class="term"><code class="option">+[no]additional</code></span></dt>
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly Display [do not display] the additional section of a
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly reply. The default is to display it.
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly<dt><span class="term"><code class="option">+[no]all</code></span></dt>
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly Set or clear all display flags.
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly<dt><span class="term"><code class="option">+[no]answer</code></span></dt>
6e89f0a006cdbb50151504b3107096e365136687Jenny Han Donnelly Display [do not display] the answer section of a
83051cc2f61c3e17f61b8f8f409a69c057db0e6bJenny Donnelly reply. The default is to display it.
6e89f0a006cdbb50151504b3107096e365136687Jenny Han Donnelly<dt><span class="term"><code class="option">+[no]authority</code></span></dt>
e.g. "[ key id = value ]".
IPv6 addresses to IP6.INT.
under the IP6.ARPA domain. To use the older RFC1886 method
<dt><span class="term"><code class="option">+[no]cookie[<span class="optional">=####</span>]</code></span></dt>
accepted. Setting a named flag (e.g. DO) will silently be