mdig.docbook revision 83a28ca274521e15086fc39febde507bcc4e145e
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn<!ENTITY mdash "—">]>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn - Copyright (C) 2015, 2016 Internet Systems Consortium, Inc. ("ISC")
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn - This Source Code Form is subject to the terms of the Mozilla Public
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn - License, v. 2.0. If a copy of the MPL was not distributed with this
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn - file, You can obtain one at http://mozilla.org/MPL/2.0/.
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn<!-- Converted by db4-upgrade version 1.0 -->
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn<refentry xmlns:db="http://docbook.org/ns/docbook" version="5.0" xml:id="man.mdig">
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <refentryinfo>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn </refentryinfo>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <refentrytitle><application>mdig</application></refentrytitle>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <refnamediv>
f58236fd702f8979a68a74e17c7a81f37899edf7Serge Hallyn <refname><application>mdig</application></refname>
f58236fd702f8979a68a74e17c7a81f37899edf7Serge Hallyn <refpurpose>DNS pipelined lookup utility</refpurpose>
f58236fd702f8979a68a74e17c7a81f37899edf7Serge Hallyn </refnamediv>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn </copyright>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <refsynopsisdiv>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <arg choice="opt" rep="norepeat"><option>-f <replaceable class="parameter">filename</replaceable></option></arg>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <arg choice="opt" rep="norepeat"><option>-h</option></arg>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <arg choice="opt" rep="norepeat"><option>-v</option></arg>
3a5495cf2f6c1806f5a91d699448b15b510f146ePo-Hsu Lin <arg choice="opt" rep="norepeat"><option>-4</option></arg>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <arg choice="opt" rep="norepeat"><option>-6</option></arg>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <arg choice="opt" rep="norepeat"><option>-b <replaceable class="parameter">address</replaceable></option></arg>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <arg choice="opt" rep="norepeat"><option>-p <replaceable class="parameter">port#</replaceable></option></arg>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <arg choice="opt" rep="norepeat"><option>-c <replaceable class="parameter">class</replaceable></option></arg>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <arg choice="opt" rep="norepeat"><option>-t <replaceable class="parameter">type</replaceable></option></arg>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <arg choice="opt" rep="norepeat"><option>-i</option></arg>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <arg choice="opt" rep="norepeat"><option>-x <replaceable class="parameter">addr</replaceable></option></arg>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn </cmdsynopsis>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn </cmdsynopsis>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <arg choice="req" rep="repeat">global-opt</arg>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn </cmdsynopsis>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn </refsynopsisdiv>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <refsection><info><title>DESCRIPTION</title></info>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn is a multiple/pipelined query version of <command>dig</command>:
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn instead of waiting for a response after sending each query,
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn it begins by sending all queries. Responses are displayed in
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn the order in which they are received, not in the order the
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn corresponding queries were sent.
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <command>mdig</command> options are a subset of the
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <command>dig</command> options, and are divided into "anywhere
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn options" which can occur anywhere, "global options" which must
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn occur before the query name (or they are ignored with a warning),
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn and "local options" which apply to the next query on the command
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn The <arg choice="req" rep="norepeat">@server</arg> option is a mandatory global
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn option. It is the name or IP address of the name server to query.
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn (Unlike <command>dig</command>, this value is not retrieved from
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <filename>/etc/resolv.conf</filename>.) It can be an IPv4 address
efdca59e498ce7a7ff0db091d7d2fec01a91b8eaSerge Hallyn in dotted-decimal notation, an IPv6 address in colon-delimited
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn notation, or a hostname. When the supplied
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <parameter>server</parameter> argument is a hostname,
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <command>mdig</command> resolves that name before querying
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn the name server.
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn provides a number of query options which affect
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn the way in which lookups are made and the results displayed. Some of
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn these set or reset flag bits in the query header, some determine which
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn sections of the answer get printed, and others determine the timeout
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn and retry strategies.
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn Each query option is identified by a keyword preceded by a plus
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn sign (<literal>+</literal>). Some keywords set or reset an
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn option. These may be preceded by the string <literal>no</literal>
42e5c9878f0d20b3e9682ef441afed2f0228b298Stéphane Graber to negate the meaning of that keyword. Other keywords assign
42e5c9878f0d20b3e9682ef441afed2f0228b298Stéphane Graber values to options like the timeout interval. They have the
42e5c9878f0d20b3e9682ef441afed2f0228b298Stéphane Graber </refsection>
42e5c9878f0d20b3e9682ef441afed2f0228b298Stéphane Graber <refsection><info><title>ANYWHERE OPTIONS</title></info>
42e5c9878f0d20b3e9682ef441afed2f0228b298Stéphane Graber The <option>-f</option> option makes <command>mdig</command>
42e5c9878f0d20b3e9682ef441afed2f0228b298Stéphane Graber operate in batch mode by reading a list of lookup requests to
42e5c9878f0d20b3e9682ef441afed2f0228b298Stéphane Graber process from the file <parameter>filename</parameter>. The file
42e5c9878f0d20b3e9682ef441afed2f0228b298Stéphane Graber contains a number of queries, one per line. Each entry in the
42e5c9878f0d20b3e9682ef441afed2f0228b298Stéphane Graber file should be organized in the same way they would be presented
42e5c9878f0d20b3e9682ef441afed2f0228b298Stéphane Graber as queries to <command>mdig</command> using the command-line interface.
42e5c9878f0d20b3e9682ef441afed2f0228b298Stéphane Graber The <option>-h</option> causes <command>mdig</command> to
177f793ae07431b2db86b5fa1b63cd59f9a66319Serge Hallyn print the detailed help with the full list of options and exit.
42e5c9878f0d20b3e9682ef441afed2f0228b298Stéphane Graber The <option>-v</option> causes <command>mdig</command> to
42e5c9878f0d20b3e9682ef441afed2f0228b298Stéphane Graber print the version number and exit.
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn </refsection>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <refsection><info><title>GLOBAL OPTIONS</title></info>
01c05c821093dc854def146d4bab62885d8eb664Po-Hsu Lin The <option>-4</option> option forces <command>mdig</command> to
01c05c821093dc854def146d4bab62885d8eb664Po-Hsu Lin only use IPv4 query transport.
01c05c821093dc854def146d4bab62885d8eb664Po-Hsu Lin The <option>-6</option> option forces <command>mdig</command> to
01c05c821093dc854def146d4bab62885d8eb664Po-Hsu Lin only use IPv6 query transport.
01c05c821093dc854def146d4bab62885d8eb664Po-Hsu Lin The <option>-b</option> option sets the source IP address of the
01c05c821093dc854def146d4bab62885d8eb664Po-Hsu Lin query to <parameter>address</parameter>. This must be a valid
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn address on one of the host's network interfaces or "0.0.0.0" or
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn "::". An optional port may be specified by appending
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn "#<port>"
f58236fd702f8979a68a74e17c7a81f37899edf7Serge Hallyn The <option>-p</option> option is used when a non-standard port
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn number is to be queried.
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <parameter>port#</parameter> is the port number
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn that <command>mdig</command> will send its queries instead of
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn the standard DNS port number 53. This option would be used to
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn test a name server that has been configured to listen for
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn queries on a non-standard port number.
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn The global query options are:
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <variablelist>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <varlistentry>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn Display [do not display] the additional section of a
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn reply. The default is to display it.
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn </varlistentry>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <varlistentry>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn Set or clear all display flags.
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn </varlistentry>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <varlistentry>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn Display [do not display] the answer section of a
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn reply. The default is to display it.
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn </varlistentry>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <varlistentry>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn Display [do not display] the authority section of a
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn reply. The default is to display it.
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn </varlistentry>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <varlistentry>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn Attempt to display the contents of messages which are
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn malformed. The default is to not display malformed
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn </varlistentry>
7aff4f43fd84b021db12b2ffed1a4aa1b4cf65efSerge Hallyn <varlistentry>
Continue on errors (e.g. timeouts).
e.g. "[ key id = value ]".
IPv6 addresses to IP6.INT.
under the IP6.ARPA domain. To use the older RFC1886 method
accepted. Setting a named flag (e.g. DO) will silently be