mdig.docbook revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding<!ENTITY mdash "—">]>
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding - Copyright (C) 2015, 2016 Internet Systems Consortium, Inc. ("ISC")
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding - This Source Code Form is subject to the terms of the Mozilla Public
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding - License, v. 2.0. If a copy of the MPL was not distributed with this
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding - file, You can obtain one at http://mozilla.org/MPL/2.0/.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding<!-- Converted by db4-upgrade version 1.0 -->
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding<refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="man.mdig">
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <refentryinfo>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding </refentryinfo>
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding <refentrytitle><application>mdig</application></refentrytitle>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <refnamediv>
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding <refpurpose>DNS pipelined lookup utility</refpurpose>
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding </refnamediv>
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding <copyright>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding </copyright>
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding <refsynopsisdiv>
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding <arg choice="opt" rep="norepeat"><option>-f <replaceable class="parameter">filename</replaceable></option></arg>
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding <arg choice="opt" rep="norepeat"><option>-h</option></arg>
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding <arg choice="opt" rep="norepeat"><option>-v</option></arg>
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding <arg choice="opt" rep="norepeat"><option>-4</option></arg>
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding <arg choice="opt" rep="norepeat"><option>-6</option></arg>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <arg choice="opt" rep="norepeat"><option>-b <replaceable class="parameter">address</replaceable></option></arg>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <arg choice="opt" rep="norepeat"><option>-p <replaceable class="parameter">port#</replaceable></option></arg>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <arg choice="opt" rep="norepeat"><option>-c <replaceable class="parameter">class</replaceable></option></arg>
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding <arg choice="opt" rep="norepeat"><option>-t <replaceable class="parameter">type</replaceable></option></arg>
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding <arg choice="opt" rep="norepeat"><option>-i</option></arg>
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding <arg choice="opt" rep="norepeat"><option>-x <replaceable class="parameter">addr</replaceable></option></arg>
ab2c1c1c83ec91415565da5a71fbc15d9685caa6fielding </cmdsynopsis>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </cmdsynopsis>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </cmdsynopsis>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </refsynopsisdiv>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <refsection><info><title>DESCRIPTION</title></info>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding is a multiple/pipelined query version of <command>dig</command>:
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding instead of waiting for a response after sending each query,
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding it begins by sending all queries. Responses are displayed in
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding the order in which they are received, not in the order the
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding corresponding queries were sent.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <command>mdig</command> options are a subset of the
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <command>dig</command> options, and are divided into "anywhere
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding options" which can occur anywhere, "global options" which must
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding occur before the query name (or they are ignored with a warning),
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding and "local options" which apply to the next query on the command
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding The <arg choice="req" rep="norepeat">@server</arg> option is a mandatory global
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding option. It is the name or IP address of the name server to query.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding (Unlike <command>dig</command>, this value is not retrieved from
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <filename>/etc/resolv.conf</filename>.) It can be an IPv4 address
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding in dotted-decimal notation, an IPv6 address in colon-delimited
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding notation, or a hostname. When the supplied
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <parameter>server</parameter> argument is a hostname,
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <command>mdig</command> resolves that name before querying
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding the name server.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding provides a number of query options which affect
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding the way in which lookups are made and the results displayed. Some of
6db54801798f6021bb464de7b3fdcc9dc3150f7bdgaudet these set or reset flag bits in the query header, some determine which
032b8a34c3911bbc5ad5385ca40af65af273bff9wrowe sections of the answer get printed, and others determine the timeout
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding and retry strategies.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding Each query option is identified by a keyword preceded by a plus
6db54801798f6021bb464de7b3fdcc9dc3150f7bdgaudet sign (<literal>+</literal>). Some keywords set or reset an
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding option. These may be preceded by the string <literal>no</literal>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding to negate the meaning of that keyword. Other keywords assign
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding values to options like the timeout interval. They have the
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </refsection>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <refsection><info><title>ANYWHERE OPTIONS</title></info>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding The <option>-f</option> option makes <command>mdig</command>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding operate in batch mode by reading a list of lookup requests to
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding process from the file <parameter>filename</parameter>. The file
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding contains a number of queries, one per line. Each entry in the
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding file should be organized in the same way they would be presented
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding as queries to <command>mdig</command> using the command-line interface.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding The <option>-h</option> causes <command>mdig</command> to
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding print the detailed help with the full list of options and exit.
6db54801798f6021bb464de7b3fdcc9dc3150f7bdgaudet The <option>-v</option> causes <command>mdig</command> to
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm print the version number and exit.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </refsection>
6db54801798f6021bb464de7b3fdcc9dc3150f7bdgaudet <refsection><info><title>GLOBAL OPTIONS</title></info>
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm The <option>-4</option> option forces <command>mdig</command> to
6db54801798f6021bb464de7b3fdcc9dc3150f7bdgaudet only use IPv4 query transport.
6db54801798f6021bb464de7b3fdcc9dc3150f7bdgaudet The <option>-6</option> option forces <command>mdig</command> to
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding only use IPv6 query transport.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding The <option>-b</option> option sets the source IP address of the
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding query to <parameter>address</parameter>. This must be a valid
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm address on one of the host's network interfaces or "0.0.0.0" or
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm "::". An optional port may be specified by appending
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding "#<port>"
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding The <option>-p</option> option is used when a non-standard port
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding number is to be queried.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding that <command>mdig</command> will send its queries instead of
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding the standard DNS port number 53. This option would be used to
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding test a name server that has been configured to listen for
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding queries on a non-standard port number.
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm The global query options are:
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <variablelist>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding Display [do not display] the additional section of a
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding reply. The default is to display it.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </listitem>
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm </varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding Set or clear all display flags.
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm </listitem>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </varlistentry>
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm <varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding Display [do not display] the answer section of a
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding reply. The default is to display it.
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm </listitem>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding Display [do not display] the authority section of a
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding reply. The default is to display it.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </listitem>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding Attempt to display the contents of messages which are
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding malformed. The default is to not display malformed
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </listitem>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding Display [do not display] the CLASS when printing the
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </listitem>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding Toggle the display of comment lines in the output.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding The default is to print comments.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </listitem>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding Toggle the display of cryptographic fields in DNSSEC
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding records. The contents of these field are unnecessary
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding to debug most DNSSEC validation failures and removing
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding them makes it easier to see the common failures. The
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding default is to display the fields. When omitted they
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding are replaced by the string "[omitted]" or in the
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding DNSKEY case the key id is displayed as the replacement,
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding e.g. "[ key id = value ]".
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </listitem>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <term><option>+dscp[=value]</option></term> <listitem>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding Set the DSCP code point to be used when sending the
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding query. Valid DSCP code points are in the range
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding [0..63]. By default no code point is explicitly set.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </listitem>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding Print records like the SOA records in a verbose
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding multi-line format with human-readable comments. The
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding default is to print each record on a single line, to
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding facilitate machine parsing of the <command>mdig</command>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </listitem>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding Print [do not print] the question section of a query
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding when an answer is returned. The default is to print
1ccd992d37d62c8cb2056126f2234f64ec189bfddougm the question section as a comment.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </listitem>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding <varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding Toggle the display of per-record comments in the
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding output (for example, human-readable key information
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding about DNSKEY records). The default is not to print
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding record comments unless multiline mode is active.
577a76180006add04a166b12f1ad130aeedeaa5estoddard </listitem>
ff72a628571224579194f37cf8db96186ae889a5dougm </varlistentry>
e68becff3c3ddc18723c9799b8cc2e6e9c3dbd66wrowe <varlistentry>
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding Provide a terse answer. The default is to print the
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding answer in a verbose form.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding </listitem>
577a76180006add04a166b12f1ad130aeedeaa5estoddard </varlistentry>
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