mdig.docbook revision ce67023ae3ad39a77da5361d0187ab6f3f0219cb
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes [<!ENTITY mdash "—">]>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes - Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes - Permission to use, copy, modify, and/or distribute this software for any
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes - purpose with or without fee is hereby granted, provided that the above
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes - copyright notice and this permission notice appear in all copies.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes - PERFORMANCE OF THIS SOFTWARE.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <refentryinfo>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes </refentryinfo>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <refentrytitle><application>mdig</application></refentrytitle>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <refnamediv>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <refname><application>mdig</application></refname>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <refpurpose>DNS pipelined lookup utility</refpurpose>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes </refnamediv>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes </copyright>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <refsynopsisdiv>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <cmdsynopsis>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <arg><option>-f <replaceable class="parameter">filename</replaceable></option></arg>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <arg><option>-b <replaceable class="parameter">address</replaceable></option></arg>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <arg><option>-p <replaceable class="parameter">port#</replaceable></option></arg>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <arg><option>-t <replaceable class="parameter">type</replaceable></option></arg>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <arg><option>-x <replaceable class="parameter">addr</replaceable></option></arg>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes </cmdsynopsis>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <cmdsynopsis>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes </cmdsynopsis>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <cmdsynopsis>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes </cmdsynopsis>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes </refsynopsisdiv>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes is a multiple/pipelined query version of <command>dig</command>:
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes instead of waiting for a response after sending each query,
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes it begins by sending all queries. Responses are displayed in
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes the order in which they are received, not in the order the
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes corresponding queries were sent.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <command>mdig</command> options are a subset of the
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <command>dig</command> options, and are divided into "anywhere
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes options" which can occur anywhere, "global options" which must
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes occur before the query name (or they are ignored with a warning),
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes and "local options" which apply to the next query on the command
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes The <arg choice="req">@server</arg> option is a mandatory global
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes option. It is the name or IP address of the name server to query.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes (Unlike <command>dig</command>, this value is not retrieved from
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <filename>/etc/resolv.conf</filename>.) It can be an IPv4 address
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes in dotted-decimal notation, an IPv6 address in colon-delimited
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes notation, or a hostname. When the supplied
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <parameter>server</parameter> argument is a hostname,
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <command>mdig</command> resolves that name before querying
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes the name server.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes provides a number of query options which affect
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes the way in which lookups are made and the results displayed. Some of
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes these set or reset flag bits in the query header, some determine which
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes sections of the answer get printed, and others determine the timeout
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes and retry strategies.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes Each query option is identified by a keyword preceded by a plus
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes sign (<literal>+</literal>). Some keywords set or reset an
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes option. These may be preceded by the string <literal>no</literal>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes to negate the meaning of that keyword. Other keywords assign
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes values to options like the timeout interval. They have the
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes The <option>-f</option> option makes <command>mdig</command>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes operate in batch mode by reading a list of lookup requests to
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes process from the file <parameter>filename</parameter>. The file
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes contains a number of queries, one per line. Each entry in the
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes file should be organized in the same way they would be presented
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes as queries to <command>mdig</command> using the command-line interface.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes The <option>-h</option> causes <command>mdig</command> to
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes print the detailed help with the full list of options and exit.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes The <option>-v</option> causes <command>mdig</command> to
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes print the version number and exit.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes The <option>-4</option> option forces <command>mdig</command> to
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes only use IPv4 query transport.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes The <option>-6</option> option forces <command>mdig</command> to
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes only use IPv6 query transport.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes The <option>-b</option> option sets the source IP address of the
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes query to <parameter>address</parameter>. This must be a valid
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes address on one of the host's network interfaces or "0.0.0.0" or
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes "::". An optional port may be specified by appending
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes "#<port>"
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes The <option>-p</option> option is used when a non-standard port
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes number is to be queried.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes that <command>mdig</command> will send its queries instead of
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes the standard DNS port number 53. This option would be used to
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes test a name server that has been configured to listen for
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes queries on a non-standard port number.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes The global query options are:
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <variablelist>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <varlistentry>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes Display [do not display] the additional section of a
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes reply. The default is to display it.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes </varlistentry>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <varlistentry>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes Set or clear all display flags.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes </varlistentry>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <varlistentry>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes Display [do not display] the answer section of a
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes reply. The default is to display it.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes </varlistentry>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <varlistentry>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes Display [do not display] the authority section of a
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes reply. The default is to display it.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes </varlistentry>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <varlistentry>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes Attempt to display the contents of messages which are
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes malformed. The default is to not display malformed
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes </varlistentry>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <varlistentry>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes Display [do not display] the CLASS when printing the
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes </varlistentry>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <varlistentry>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes Toggle the display of comment lines in the output.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes The default is to print comments.
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes </varlistentry>
302abf53d2b1a686f6eafd445c49e1e006afb190bnicholes <varlistentry>
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