mdig.docbook revision ef1e2f790639e187d2286292f25593ad7c6c2391
ecff557eebd67a717ab6fd3323af27363ee3273dMark Andrews<!DOCTYPE book [
ecff557eebd67a717ab6fd3323af27363ee3273dMark Andrews<!ENTITY mdash "&#8212;">]>
ecff557eebd67a717ab6fd3323af27363ee3273dMark Andrews<!--
fbc50678e18eced2c1324bd968e77d4d7737d0caMark Andrews - Copyright (C) 2015, 2016 Internet Systems Consortium, Inc. ("ISC")
fbc50678e18eced2c1324bd968e77d4d7737d0caMark Andrews -
fbc50678e18eced2c1324bd968e77d4d7737d0caMark Andrews - This Source Code Form is subject to the terms of the Mozilla Public
fbc50678e18eced2c1324bd968e77d4d7737d0caMark Andrews - License, v. 2.0. If a copy of the MPL was not distributed with this
c2afbab9dc8de73c85b32624a8364bc7532d1fa9Witold Krecicki - file, You can obtain one at http://mozilla.org/MPL/2.0/.
c2afbab9dc8de73c85b32624a8364bc7532d1fa9Witold Krecicki-->
c2afbab9dc8de73c85b32624a8364bc7532d1fa9Witold Krecicki
51ec0decc11beda6b903fbfa18c35edef09ad5feWitold Krecicki<!-- Converted by db4-upgrade version 1.0 -->
51ec0decc11beda6b903fbfa18c35edef09ad5feWitold Krecicki<refentry xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="man.mdig">
3d0b7d5cc3428dedf4486e949fbd536eef494b99Evan Hunt <info>
3d0b7d5cc3428dedf4486e949fbd536eef494b99Evan Hunt <date>2015-01-05</date>
3d0b7d5cc3428dedf4486e949fbd536eef494b99Evan Hunt </info>
3d0b7d5cc3428dedf4486e949fbd536eef494b99Evan Hunt <refentryinfo>
3d0b7d5cc3428dedf4486e949fbd536eef494b99Evan Hunt <corpname>ISC</corpname>
3d0b7d5cc3428dedf4486e949fbd536eef494b99Evan Hunt <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
9268297baa1429d8851c36972d918dde66544746Mark Andrews </refentryinfo>
9268297baa1429d8851c36972d918dde66544746Mark Andrews <refmeta>
9268297baa1429d8851c36972d918dde66544746Mark Andrews <refentrytitle><application>mdig</application></refentrytitle>
9268297baa1429d8851c36972d918dde66544746Mark Andrews <manvolnum>1</manvolnum>
d7ab0204e26098847232548f03833e185db0b99fMark Andrews <refmiscinfo>BIND9</refmiscinfo>
d7ab0204e26098847232548f03833e185db0b99fMark Andrews </refmeta>
d7ab0204e26098847232548f03833e185db0b99fMark Andrews <refnamediv>
aabcb1fde0ca255ff30f0a5c10cbd39f798cc5b7Mark Andrews <refname><application>mdig</application></refname>
aabcb1fde0ca255ff30f0a5c10cbd39f798cc5b7Mark Andrews <refpurpose>DNS pipelined lookup utility</refpurpose>
aabcb1fde0ca255ff30f0a5c10cbd39f798cc5b7Mark Andrews </refnamediv>
aabcb1fde0ca255ff30f0a5c10cbd39f798cc5b7Mark Andrews
7a00d69909ace5dc11bcff9c1e07c311f92a7f8eWitold Krecicki <docinfo>
7a00d69909ace5dc11bcff9c1e07c311f92a7f8eWitold Krecicki <copyright>
7a00d69909ace5dc11bcff9c1e07c311f92a7f8eWitold Krecicki <year>2015</year>
7a00d69909ace5dc11bcff9c1e07c311f92a7f8eWitold Krecicki <year>2016</year>
7a00d69909ace5dc11bcff9c1e07c311f92a7f8eWitold Krecicki <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
7a00d69909ace5dc11bcff9c1e07c311f92a7f8eWitold Krecicki </copyright>
7a00d69909ace5dc11bcff9c1e07c311f92a7f8eWitold Krecicki </docinfo>
7a00d69909ace5dc11bcff9c1e07c311f92a7f8eWitold Krecicki
ac110848296c18b3a3bfaa89bdee2dd00755b36fMark Andrews <refsynopsisdiv>
ac110848296c18b3a3bfaa89bdee2dd00755b36fMark Andrews <cmdsynopsis sepchar=" ">
ac110848296c18b3a3bfaa89bdee2dd00755b36fMark Andrews <command>mdig</command>
ac110848296c18b3a3bfaa89bdee2dd00755b36fMark Andrews <arg choice="req" rep="norepeat">@server</arg>
ede52ba98d02bc1ac4483a77d403ff1d64a003ceMark Andrews <arg choice="opt" rep="norepeat"><option>-f <replaceable class="parameter">filename</replaceable></option></arg>
ede52ba98d02bc1ac4483a77d403ff1d64a003ceMark Andrews <arg choice="opt" rep="norepeat"><option>-h</option></arg>
a0f5a5e3c5c6dd29b18bc06fea0d02ae7fc24ac9Mark Andrews <arg choice="opt" rep="norepeat"><option>-v</option></arg>
a0f5a5e3c5c6dd29b18bc06fea0d02ae7fc24ac9Mark Andrews <arg choice="opt" rep="norepeat"><option>-4</option></arg>
0cbe448914be61d0f92b1e9d3adaeba87d25639dEvan Hunt <arg choice="opt" rep="norepeat"><option>-6</option></arg>
0cbe448914be61d0f92b1e9d3adaeba87d25639dEvan Hunt <arg choice="opt" rep="norepeat"><option>-b <replaceable class="parameter">address</replaceable></option></arg>
0cbe448914be61d0f92b1e9d3adaeba87d25639dEvan Hunt <arg choice="opt" rep="norepeat"><option>-p <replaceable class="parameter">port#</replaceable></option></arg>
0cbe448914be61d0f92b1e9d3adaeba87d25639dEvan Hunt <arg choice="opt" rep="norepeat"><option>-c <replaceable class="parameter">class</replaceable></option></arg>
0cbe448914be61d0f92b1e9d3adaeba87d25639dEvan Hunt <arg choice="opt" rep="norepeat"><option>-t <replaceable class="parameter">type</replaceable></option></arg>
9dede25430218a1f683dfef36f04ac7cf5bbd9e8Mark Andrews <arg choice="opt" rep="norepeat"><option>-i</option></arg>
10f8dc8456ba073fdb2bfc5168d78de574debeeeMark Andrews <arg choice="opt" rep="norepeat"><option>-x <replaceable class="parameter">addr</replaceable></option></arg>
9dede25430218a1f683dfef36f04ac7cf5bbd9e8Mark Andrews <arg choice="opt" rep="repeat">plusopt</arg>
88699327de812fdd5beeb68b06ea45000fca2175Mark Andrews </cmdsynopsis>
53a70bef3508acb1517b8eb57f61a81280c11509Mark Andrews
d3600bb89d32a7e0d943691d3cad5c569ef6158dMark Andrews <cmdsynopsis sepchar=" ">
d3600bb89d32a7e0d943691d3cad5c569ef6158dMark Andrews <command>mdig</command>
d3600bb89d32a7e0d943691d3cad5c569ef6158dMark Andrews <arg choice="req" rep="norepeat">-h</arg>
7472cd350fe9245553e9da7f2df8e7e364d136abMukund Sivaraman </cmdsynopsis>
7472cd350fe9245553e9da7f2df8e7e364d136abMukund Sivaraman
7472cd350fe9245553e9da7f2df8e7e364d136abMukund Sivaraman <cmdsynopsis sepchar=" ">
7472cd350fe9245553e9da7f2df8e7e364d136abMukund Sivaraman <command>mdig</command>
7472cd350fe9245553e9da7f2df8e7e364d136abMukund Sivaraman <arg choice="opt" rep="norepeat">@server</arg>
049a49c2956dd9cc9b82974e2bbe77c57fcc73dbMark Andrews <arg choice="req" rep="repeat">global-opt</arg>
049a49c2956dd9cc9b82974e2bbe77c57fcc73dbMark Andrews <arg choice="req" rep="repeat">
049a49c2956dd9cc9b82974e2bbe77c57fcc73dbMark Andrews <arg choice="req" rep="repeat">local-opt</arg>
e2047969decfc0c3fc1a946ccade993cab9c9315Mark Andrews <arg choice="req" rep="norepeat">query</arg>
e2047969decfc0c3fc1a946ccade993cab9c9315Mark Andrews </arg>
e2047969decfc0c3fc1a946ccade993cab9c9315Mark Andrews </cmdsynopsis>
c3beecc1bcc6e1c15176a699b41ca77ef6533c25Mark Andrews </refsynopsisdiv>
c3beecc1bcc6e1c15176a699b41ca77ef6533c25Mark Andrews
c3beecc1bcc6e1c15176a699b41ca77ef6533c25Mark Andrews <refsection><info><title>DESCRIPTION</title></info>
0be436fc397396ed490182f022d02b46c7a50271Mark Andrews
0be436fc397396ed490182f022d02b46c7a50271Mark Andrews <para><command>mdig</command>
da06956f4b1467608a7b00737d49622d6a27ba3fMark Andrews is a multiple/pipelined query version of <command>dig</command>:
53a70bef3508acb1517b8eb57f61a81280c11509Mark Andrews instead of waiting for a response after sending each query,
8090ceb932b52c70d72f655531150e0a1122052dMark Andrews it begins by sending all queries. Responses are displayed in
f89adb2c2a52b505501c3eaa2aec9fd4df6bd60aTinderbox User the order in which they are received, not in the order the
f89adb2c2a52b505501c3eaa2aec9fd4df6bd60aTinderbox User corresponding queries were sent.
e846f127d64ea690b789efa6e5b4ff9f64cf3235Witold Krecicki </para>
e846f127d64ea690b789efa6e5b4ff9f64cf3235Witold Krecicki
28053af04c5121ec234c320e4c76273305816e7aEvan Hunt <para>
28053af04c5121ec234c320e4c76273305816e7aEvan Hunt <command>mdig</command> options are a subset of the
28053af04c5121ec234c320e4c76273305816e7aEvan Hunt <command>dig</command> options, and are divided into "anywhere
28053af04c5121ec234c320e4c76273305816e7aEvan Hunt options" which can occur anywhere, "global options" which must
5ac427050fa0e303171133ce3855b284ab4cfbb7Mark Andrews occur before the query name (or they are ignored with a warning),
5ac427050fa0e303171133ce3855b284ab4cfbb7Mark Andrews and "local options" which apply to the next query on the command
5ac427050fa0e303171133ce3855b284ab4cfbb7Mark Andrews line.
594d15df254304ef6705a9fc028bcd34328bce42Mark Andrews </para>
594d15df254304ef6705a9fc028bcd34328bce42Mark Andrews
594d15df254304ef6705a9fc028bcd34328bce42Mark Andrews <para>
19d80ce5844e00a021643759adcbe27c11b485a0Witold Krecicki The <arg choice="req" rep="norepeat">@server</arg> option is a mandatory global
19d80ce5844e00a021643759adcbe27c11b485a0Witold Krecicki option. It is the name or IP address of the name server to query.
19d80ce5844e00a021643759adcbe27c11b485a0Witold Krecicki (Unlike <command>dig</command>, this value is not retrieved from
19d80ce5844e00a021643759adcbe27c11b485a0Witold Krecicki <filename>/etc/resolv.conf</filename>.) It can be an IPv4 address
dc2a4887c40b1ee361cef51e188b386e19497e01Witold Krecicki in dotted-decimal notation, an IPv6 address in colon-delimited
dc2a4887c40b1ee361cef51e188b386e19497e01Witold Krecicki notation, or a hostname. When the supplied
08e36aa5a5c7697a839f83831fccf8fb3f792848Mark Andrews <parameter>server</parameter> argument is a hostname,
08e36aa5a5c7697a839f83831fccf8fb3f792848Mark Andrews <command>mdig</command> resolves that name before querying
370c6e0ac1ad6330e5ded66e5636c5c93d2ce3ffEvan Hunt the name server.
08e36aa5a5c7697a839f83831fccf8fb3f792848Mark Andrews </para>
08e36aa5a5c7697a839f83831fccf8fb3f792848Mark Andrews
f1a2709aad7baa4161fdb6f63edf99b0150af252Evan Hunt <para><command>mdig</command>
f1a2709aad7baa4161fdb6f63edf99b0150af252Evan Hunt provides a number of query options which affect
f1a2709aad7baa4161fdb6f63edf99b0150af252Evan Hunt the way in which lookups are made and the results displayed. Some of
f1a2709aad7baa4161fdb6f63edf99b0150af252Evan Hunt these set or reset flag bits in the query header, some determine which
f1a2709aad7baa4161fdb6f63edf99b0150af252Evan Hunt sections of the answer get printed, and others determine the timeout
402c63495c40b2289de8daee5a396fd392cea080Mark Andrews and retry strategies.
402c63495c40b2289de8daee5a396fd392cea080Mark Andrews </para>
402c63495c40b2289de8daee5a396fd392cea080Mark Andrews
b0ffe328620db4ead7079e8cd26a584f5b947754Mark Andrews <para>
402c63495c40b2289de8daee5a396fd392cea080Mark Andrews Each query option is identified by a keyword preceded by a plus
402c63495c40b2289de8daee5a396fd392cea080Mark Andrews sign (<literal>+</literal>). Some keywords set or reset an
699f790c49d03a9ef3c3234a72d272bb469203e8Evan Hunt option. These may be preceded by the string <literal>no</literal>
699f790c49d03a9ef3c3234a72d272bb469203e8Evan Hunt to negate the meaning of that keyword. Other keywords assign
66074f152f2a42218e6d54f50d4fa3717940c299Evan Hunt values to options like the timeout interval. They have the
66074f152f2a42218e6d54f50d4fa3717940c299Evan Hunt form <option>+keyword=value</option>.
66074f152f2a42218e6d54f50d4fa3717940c299Evan Hunt </para>
66074f152f2a42218e6d54f50d4fa3717940c299Evan Hunt </refsection>
66074f152f2a42218e6d54f50d4fa3717940c299Evan Hunt
66074f152f2a42218e6d54f50d4fa3717940c299Evan Hunt <refsection><info><title>ANYWHERE OPTIONS</title></info>
48bf87ba83396aae2251646aed9a9cac183e5780Mark Andrews
48bf87ba83396aae2251646aed9a9cac183e5780Mark Andrews
cd6eeeb827f65df4bfb3e7ed3454655650f7dba7Mark Andrews <para>
cd6eeeb827f65df4bfb3e7ed3454655650f7dba7Mark Andrews The <option>-f</option> option makes <command>mdig</command>
aa5506eda809dfd25b4e1ee6edb5285a77958d2cEvan Hunt operate in batch mode by reading a list of lookup requests to
aa5506eda809dfd25b4e1ee6edb5285a77958d2cEvan Hunt process from the file <parameter>filename</parameter>. The file
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt contains a number of queries, one per line. Each entry in the
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt file should be organized in the same way they would be presented
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt as queries to <command>mdig</command> using the command-line interface.
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt </para>
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt <para>
aa5506eda809dfd25b4e1ee6edb5285a77958d2cEvan Hunt The <option>-h</option> causes <command>mdig</command> to
f6096b958c8b58c4709860d7c4dcdde5deeacb7aEvan Hunt print the detailed help with the full list of options and exit.
16591ba9ae26e4d6e1bc0dd4776725326174abaaMark Andrews </para>
91499fdb483d88377756fa517c25e3564bfa4e3bEvan Hunt
16591ba9ae26e4d6e1bc0dd4776725326174abaaMark Andrews <para>
3cd204c4a46f21bf2a38f35e79af45ac595be943Evan Hunt The <option>-v</option> causes <command>mdig</command> to
3cd204c4a46f21bf2a38f35e79af45ac595be943Evan Hunt print the version number and exit.
3cd204c4a46f21bf2a38f35e79af45ac595be943Evan Hunt </para>
8fcf2413e99597b6690b6a352aa12842f9be27e5Mark Andrews </refsection>
8fcf2413e99597b6690b6a352aa12842f9be27e5Mark Andrews
8fcf2413e99597b6690b6a352aa12842f9be27e5Mark Andrews <refsection><info><title>GLOBAL OPTIONS</title></info>
7660b370c363d08a43ad713a84f94798f3fc4879Mark Andrews
7660b370c363d08a43ad713a84f94798f3fc4879Mark Andrews
651be63a1111c50942533016b3a2a6403d74cd9eMark Andrews <para>
651be63a1111c50942533016b3a2a6403d74cd9eMark Andrews The <option>-4</option> option forces <command>mdig</command> to
651be63a1111c50942533016b3a2a6403d74cd9eMark Andrews only use IPv4 query transport.
b1888f0e2ed6bebe79822de83bf67f5c440a22e1Mark Andrews </para>
6214c3c93a43dc86f080dc0219e4560b69721f53Mark Andrews
6214c3c93a43dc86f080dc0219e4560b69721f53Mark Andrews <para>
448884248519a8edade1b51aa7d20140b12764a9Evan Hunt The <option>-6</option> option forces <command>mdig</command> to
448884248519a8edade1b51aa7d20140b12764a9Evan Hunt only use IPv6 query transport.
395e6865d5b0ec13c1e4cc3947598153aa4e4914Evan Hunt </para>
395e6865d5b0ec13c1e4cc3947598153aa4e4914Evan Hunt
395e6865d5b0ec13c1e4cc3947598153aa4e4914Evan Hunt <para>
39225b4b510385f0cee915f0622574b76f5d6082Evan Hunt The <option>-b</option> option sets the source IP address of the
cf24cbd837617c5cb89f04ba97b262be21a925bfEvan Hunt query to <parameter>address</parameter>. This must be a valid
cf24cbd837617c5cb89f04ba97b262be21a925bfEvan Hunt address on one of the host's network interfaces or "0.0.0.0" or
cf24cbd837617c5cb89f04ba97b262be21a925bfEvan Hunt "::". An optional port may be specified by appending
ddf3342cca1a2dbd98c5443cbb9b184c428cdda5Evan Hunt "#&lt;port&gt;"
ddf3342cca1a2dbd98c5443cbb9b184c428cdda5Evan Hunt </para>
558278974eb4a1021943e6bbbc6c7d80dc3707fdMark Andrews
558278974eb4a1021943e6bbbc6c7d80dc3707fdMark Andrews <para>
558278974eb4a1021943e6bbbc6c7d80dc3707fdMark Andrews The <option>-p</option> option is used when a non-standard port
132a57117978816eebf6f8c33b39bdcfcd62fd7aEvan Hunt number is to be queried.
132a57117978816eebf6f8c33b39bdcfcd62fd7aEvan Hunt <parameter>port#</parameter> is the port number
132a57117978816eebf6f8c33b39bdcfcd62fd7aEvan Hunt that <command>mdig</command> will send its queries instead of
132a57117978816eebf6f8c33b39bdcfcd62fd7aEvan Hunt the standard DNS port number 53. This option would be used to
0993cd5f2227c1aa6a8554f4a9a847efabbcfcb8Mark Andrews test a name server that has been configured to listen for
0993cd5f2227c1aa6a8554f4a9a847efabbcfcb8Mark Andrews queries on a non-standard port number.
0993cd5f2227c1aa6a8554f4a9a847efabbcfcb8Mark Andrews </para>
b8dcc13bc5d49aa18a80179851cf0d7a81c54887Mark Andrews
b8dcc13bc5d49aa18a80179851cf0d7a81c54887Mark Andrews <para>
756c6433301f2f5dad3372af2bef56c0b28e99b7Mark Andrews The global query options are:
756c6433301f2f5dad3372af2bef56c0b28e99b7Mark Andrews <variablelist>
8e4d56d45dc6daa9dfc5c33b67138ecb9d5bf004Tinderbox User
1add4a7939a550d50b156f72631ea374b6182149Mark Andrews <varlistentry>
1add4a7939a550d50b156f72631ea374b6182149Mark Andrews <term><option>+[no]additional</option></term>
381c77fd82ea5a51ee52929ec43c1f3adb27686aMark Andrews <listitem>
381c77fd82ea5a51ee52929ec43c1f3adb27686aMark Andrews <para>
7c525954642f8fb3698b555115edb09fe3bd3354Mark Andrews Display [do not display] the additional section of a
7c525954642f8fb3698b555115edb09fe3bd3354Mark Andrews reply. The default is to display it.
7c525954642f8fb3698b555115edb09fe3bd3354Mark Andrews </para>
7c525954642f8fb3698b555115edb09fe3bd3354Mark Andrews </listitem>
33a4294f442f7505c8e2453beb422b5928ec697cMark Andrews </varlistentry>
33a4294f442f7505c8e2453beb422b5928ec697cMark Andrews
33a4294f442f7505c8e2453beb422b5928ec697cMark Andrews <varlistentry>
d6357f09aacf518df14875fffa819607daa05d17Mark Andrews <term><option>+[no]all</option></term>
d6357f09aacf518df14875fffa819607daa05d17Mark Andrews <listitem>
d6357f09aacf518df14875fffa819607daa05d17Mark Andrews <para>
59328c76745ee6d2df047e3f072b118258b87cb6Mukund Sivaraman Set or clear all display flags.
59328c76745ee6d2df047e3f072b118258b87cb6Mukund Sivaraman </para>
275265ab27815d2261ebf68b48201fb7bffdf426Mukund Sivaraman </listitem>
ade0aa3cb0fafbbe9fffb29f9abba4ce85890c3fMark Andrews </varlistentry>
ade0aa3cb0fafbbe9fffb29f9abba4ce85890c3fMark Andrews
275265ab27815d2261ebf68b48201fb7bffdf426Mukund Sivaraman <varlistentry>
8398f0015625495e228eea195e3adccfcf59ffccMark Andrews <term><option>+[no]answer</option></term>
8398f0015625495e228eea195e3adccfcf59ffccMark Andrews <listitem>
023ba1e6ef28d888ad0030fd72937fb4de2129bdEvan Hunt <para>
023ba1e6ef28d888ad0030fd72937fb4de2129bdEvan Hunt Display [do not display] the answer section of a
023ba1e6ef28d888ad0030fd72937fb4de2129bdEvan Hunt reply. The default is to display it.
44c86318ed432af96848269250930297eea2bba3Evan Hunt </para>
44c86318ed432af96848269250930297eea2bba3Evan Hunt </listitem>
44c86318ed432af96848269250930297eea2bba3Evan Hunt </varlistentry>
44c86318ed432af96848269250930297eea2bba3Evan Hunt
806e05d28a479291110a9fdb1788e675a56fc364Mark Andrews <varlistentry>
ce7216c40ac973ed9ac5a90d75cd41b14b789725Mark Andrews <term><option>+[no]authority</option></term>
ce7216c40ac973ed9ac5a90d75cd41b14b789725Mark Andrews <listitem>
455c0848f80a8acda27aad1466c72987cafaa029Mark Andrews <para>
455c0848f80a8acda27aad1466c72987cafaa029Mark Andrews Display [do not display] the authority section of a
455c0848f80a8acda27aad1466c72987cafaa029Mark Andrews reply. The default is to display it.
455c0848f80a8acda27aad1466c72987cafaa029Mark Andrews </para>
f9da4a8e543cf895b6171773e75d343b2914a7e7Mark Andrews </listitem>
f9da4a8e543cf895b6171773e75d343b2914a7e7Mark Andrews </varlistentry>
f9da4a8e543cf895b6171773e75d343b2914a7e7Mark Andrews
f9da4a8e543cf895b6171773e75d343b2914a7e7Mark Andrews <varlistentry>
293a9e997803ebcf4e6ade8c972465bf6330f534Mukund Sivaraman <term><option>+[no]besteffort</option></term>
293a9e997803ebcf4e6ade8c972465bf6330f534Mukund Sivaraman <listitem>
293a9e997803ebcf4e6ade8c972465bf6330f534Mukund Sivaraman <para>
293a9e997803ebcf4e6ade8c972465bf6330f534Mukund Sivaraman Attempt to display the contents of messages which are
5995fec51cc8bb7e53804e4936e60aa1537f3673Mukund Sivaraman malformed. The default is to not display malformed
5995fec51cc8bb7e53804e4936e60aa1537f3673Mukund Sivaraman answers.
5995fec51cc8bb7e53804e4936e60aa1537f3673Mukund Sivaraman </para>
5995fec51cc8bb7e53804e4936e60aa1537f3673Mukund Sivaraman </listitem>
a2b15b3305acd52179e6f3dc7d073b07fbc40b8eMark Andrews </varlistentry>
a2b15b3305acd52179e6f3dc7d073b07fbc40b8eMark Andrews
a2b15b3305acd52179e6f3dc7d073b07fbc40b8eMark Andrews <varlistentry>
d372f426ca42ee2bc7bcb1f76a52c4f154de1f9bMark Andrews <term><option>+[no]cl</option></term>
d372f426ca42ee2bc7bcb1f76a52c4f154de1f9bMark Andrews <listitem>
79a55d4f4dcf3d6f617523228503d8584b72a3a3Mukund Sivaraman <para>
79a55d4f4dcf3d6f617523228503d8584b72a3a3Mukund Sivaraman Display [do not display] the CLASS when printing the
79a55d4f4dcf3d6f617523228503d8584b72a3a3Mukund Sivaraman record.
0c29904b27c9ab3b85ecbde159b22ae1323bdbcdMukund Sivaraman </para>
0c29904b27c9ab3b85ecbde159b22ae1323bdbcdMukund Sivaraman </listitem>
0c29904b27c9ab3b85ecbde159b22ae1323bdbcdMukund Sivaraman </varlistentry>
f3ad877eb05befbc862b0233d985758c0caef29aEvan Hunt
f3ad877eb05befbc862b0233d985758c0caef29aEvan Hunt <varlistentry>
f3ad877eb05befbc862b0233d985758c0caef29aEvan Hunt <term><option>+[no]comments</option></term>
d88ba937124b2a4f8a074fc2aef9caf2022308b4Mark Andrews <listitem>
d88ba937124b2a4f8a074fc2aef9caf2022308b4Mark Andrews <para>
d88ba937124b2a4f8a074fc2aef9caf2022308b4Mark Andrews Toggle the display of comment lines in the output.
40401165e4646f1624175ac80bf9b51826ab67ecMark Andrews The default is to print comments.
8d00c5ab2c16985457947ddb0376707ab7094b80Mark Andrews </para>
8d00c5ab2c16985457947ddb0376707ab7094b80Mark Andrews </listitem>
ec450fde7cee684f37b0a59d770330c700419610Evan Hunt </varlistentry>
ec450fde7cee684f37b0a59d770330c700419610Evan Hunt
ec450fde7cee684f37b0a59d770330c700419610Evan Hunt <varlistentry>
d1dbf6b20fdcfa95acd75cdb96fcd57067a31144Mukund Sivaraman <term><option>+[no]continue</option></term>
d1dbf6b20fdcfa95acd75cdb96fcd57067a31144Mukund Sivaraman <listitem>
d1dbf6b20fdcfa95acd75cdb96fcd57067a31144Mukund Sivaraman <para>
3fe17d62e32017b643b852ede1b234271ee308e1Evan Hunt Continue on errors (e.g. timeouts).
3fe17d62e32017b643b852ede1b234271ee308e1Evan Hunt </para>
3fe17d62e32017b643b852ede1b234271ee308e1Evan Hunt </listitem>
f02c22d58ac88777655e0b407b22b07864d39184Evan Hunt </varlistentry>
f02c22d58ac88777655e0b407b22b07864d39184Evan Hunt
f02c22d58ac88777655e0b407b22b07864d39184Evan Hunt <varlistentry>
5f4f7c688e0cca18edd67e9760b266ce8f67e29cTinderbox User <term><option>+[no]crypto</option></term>
5f4f7c688e0cca18edd67e9760b266ce8f67e29cTinderbox User <listitem>
40401165e4646f1624175ac80bf9b51826ab67ecMark Andrews <para>
df9a49ee07f7629ec6abd2e3bd0dee600d7e2ab4Evan Hunt Toggle the display of cryptographic fields in DNSSEC
df9a49ee07f7629ec6abd2e3bd0dee600d7e2ab4Evan Hunt records. The contents of these field are unnecessary
e073205a884d3762fdc678d4b8a61b627a4070abEvan Hunt to debug most DNSSEC validation failures and removing
e073205a884d3762fdc678d4b8a61b627a4070abEvan Hunt them makes it easier to see the common failures. The
e073205a884d3762fdc678d4b8a61b627a4070abEvan Hunt default is to display the fields. When omitted they
832ab79d1f8bc4edf638780b306888da30ac3a1eMark Andrews are replaced by the string "[omitted]" or in the
832ab79d1f8bc4edf638780b306888da30ac3a1eMark Andrews DNSKEY case the key id is displayed as the replacement,
832ab79d1f8bc4edf638780b306888da30ac3a1eMark Andrews e.g. "[ key id = value ]".
9d85a773829484832f762a9088a7dafd6794aa39Mark Andrews </para>
9d85a773829484832f762a9088a7dafd6794aa39Mark Andrews </listitem>
9d85a773829484832f762a9088a7dafd6794aa39Mark Andrews </varlistentry>
8ede7a974b126b3afe766c11ca621aee52c9889aEvan Hunt
8ede7a974b126b3afe766c11ca621aee52c9889aEvan Hunt <varlistentry>
8ede7a974b126b3afe766c11ca621aee52c9889aEvan Hunt <term><option>+dscp[=value]</option></term> <listitem>
8ede7a974b126b3afe766c11ca621aee52c9889aEvan Hunt <para>
8ede7a974b126b3afe766c11ca621aee52c9889aEvan Hunt Set the DSCP code point to be used when sending the
8ede7a974b126b3afe766c11ca621aee52c9889aEvan Hunt query. Valid DSCP code points are in the range
8ede7a974b126b3afe766c11ca621aee52c9889aEvan Hunt [0..63]. By default no code point is explicitly set.
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Hunt </para>
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Hunt </listitem>
f8432e3f249dbec36394539ca1f3cb25bf33abfeMark Andrews </varlistentry>
f8432e3f249dbec36394539ca1f3cb25bf33abfeMark Andrews
630b2d0c5a04cfc8b08d4585b7a0d997c00d7341Evan Hunt <varlistentry>
40401165e4646f1624175ac80bf9b51826ab67ecMark Andrews <term><option>+[no]multiline</option></term>
630b2d0c5a04cfc8b08d4585b7a0d997c00d7341Evan Hunt <listitem>
630b2d0c5a04cfc8b08d4585b7a0d997c00d7341Evan Hunt <para>
630b2d0c5a04cfc8b08d4585b7a0d997c00d7341Evan Hunt Print records like the SOA records in a verbose
630b2d0c5a04cfc8b08d4585b7a0d997c00d7341Evan Hunt multi-line format with human-readable comments. The
1d383fd4b23fc7031e562bf5db02e3018c5d0b9eMark Andrews default is to print each record on a single line, to
1d383fd4b23fc7031e562bf5db02e3018c5d0b9eMark Andrews facilitate machine parsing of the <command>mdig</command>
1d383fd4b23fc7031e562bf5db02e3018c5d0b9eMark Andrews output.
1d383fd4b23fc7031e562bf5db02e3018c5d0b9eMark Andrews </para>
3ecc17d5519cc5b45cba3344344f296f3ff57776Mark Andrews </listitem>
40401165e4646f1624175ac80bf9b51826ab67ecMark Andrews </varlistentry>
3ecc17d5519cc5b45cba3344344f296f3ff57776Mark Andrews
9b789c54f8829b867c4a888c47bd2310a790415aEvan Hunt <varlistentry>
9b789c54f8829b867c4a888c47bd2310a790415aEvan Hunt <term><option>+[no]question</option></term>
9b789c54f8829b867c4a888c47bd2310a790415aEvan Hunt <listitem>
d40154cab71b0c774d80df2c0091e1f8edcaa7d4Evan Hunt <para>
d40154cab71b0c774d80df2c0091e1f8edcaa7d4Evan Hunt Print [do not print] the question section of a query
d40154cab71b0c774d80df2c0091e1f8edcaa7d4Evan Hunt when an answer is returned. The default is to print
d40154cab71b0c774d80df2c0091e1f8edcaa7d4Evan Hunt the question section as a comment.
2879ee2c72638ea190728f931ce286760caa4521Evan Hunt </para>
2879ee2c72638ea190728f931ce286760caa4521Evan Hunt </listitem>
2879ee2c72638ea190728f931ce286760caa4521Evan Hunt </varlistentry>
2879ee2c72638ea190728f931ce286760caa4521Evan Hunt
6bd794171f2ba0ee93b99ccbf80378959f4e965bEvan Hunt <varlistentry>
6bd794171f2ba0ee93b99ccbf80378959f4e965bEvan Hunt <term><option>+[no]rrcomments</option></term>
6bd794171f2ba0ee93b99ccbf80378959f4e965bEvan Hunt <listitem>
73fbd4c9d3e65621eb32a8e01659532f131de690Mark Andrews <para>
73fbd4c9d3e65621eb32a8e01659532f131de690Mark Andrews Toggle the display of per-record comments in the
73fbd4c9d3e65621eb32a8e01659532f131de690Mark Andrews output (for example, human-readable key information
fc7bce5f350aa119d4c500fd5b35c47b14b539efMark Andrews about DNSKEY records). The default is not to print
fc7bce5f350aa119d4c500fd5b35c47b14b539efMark Andrews record comments unless multiline mode is active.
b4ccec331dbd81581c6226a54847385a27d9eb25Evan Hunt </para>
b4ccec331dbd81581c6226a54847385a27d9eb25Evan Hunt </listitem>
bb5d14d7243d71e03d262ff175b355b52873e195Evan Hunt </varlistentry>
bb5d14d7243d71e03d262ff175b355b52873e195Evan Hunt
bb5d14d7243d71e03d262ff175b355b52873e195Evan Hunt <varlistentry>
bb5d14d7243d71e03d262ff175b355b52873e195Evan Hunt <term><option>+[no]short</option></term>
bb5d14d7243d71e03d262ff175b355b52873e195Evan Hunt <listitem>
c8b968f4144a271213756cc33e8062b9efdd7441Evan Hunt <para>
c8b968f4144a271213756cc33e8062b9efdd7441Evan Hunt Provide a terse answer. The default is to print the
c8b968f4144a271213756cc33e8062b9efdd7441Evan Hunt answer in a verbose form.
c8b968f4144a271213756cc33e8062b9efdd7441Evan Hunt </para>
41494939b62d74fb159009f28428df23e5fc70e3Evan Hunt </listitem>
41494939b62d74fb159009f28428df23e5fc70e3Evan Hunt </varlistentry>
41494939b62d74fb159009f28428df23e5fc70e3Evan Hunt
41494939b62d74fb159009f28428df23e5fc70e3Evan Hunt <varlistentry>
3bcd09b4162ccd383b4b20e3b5306b3c317c9795Evan Hunt <term><option>+split=W</option></term>
3bcd09b4162ccd383b4b20e3b5306b3c317c9795Evan Hunt <listitem>
3bcd09b4162ccd383b4b20e3b5306b3c317c9795Evan Hunt <para>
292eb9c4e4fc51aec911e72821735a123a8c252aMark Andrews Split long hex- or base64-formatted fields in resource
292eb9c4e4fc51aec911e72821735a123a8c252aMark Andrews records into chunks of <parameter>W</parameter>
292eb9c4e4fc51aec911e72821735a123a8c252aMark Andrews characters (where <parameter>W</parameter> is rounded
292eb9c4e4fc51aec911e72821735a123a8c252aMark Andrews up to the nearest multiple of 4).
1b3d21180244529f0099894fe9d29beb3f11efb3Mark Andrews <parameter>+nosplit</parameter> or
1b3d21180244529f0099894fe9d29beb3f11efb3Mark Andrews <parameter>+split=0</parameter> causes fields not to
1b3d21180244529f0099894fe9d29beb3f11efb3Mark Andrews be split at all. The default is 56 characters, or
fbed5f0f44515f5b3ca499a3466c875507852970Evan Hunt 44 characters when multiline mode is active.
fbed5f0f44515f5b3ca499a3466c875507852970Evan Hunt </para>
fbed5f0f44515f5b3ca499a3466c875507852970Evan Hunt </listitem>
fbed5f0f44515f5b3ca499a3466c875507852970Evan Hunt </varlistentry>
fbed5f0f44515f5b3ca499a3466c875507852970Evan Hunt
4fa9eaf0734e892431e78179bdcc5251c9b6aa7dMark Andrews <varlistentry>
bed6e9d614d2ac9e6a84949379aba4fc04aa8e0bMark Andrews <term><option>+[no]tcp</option></term>
49762dffc45b6c02abe5d131cb7c49369cf13e09Mark Andrews <listitem>
49762dffc45b6c02abe5d131cb7c49369cf13e09Mark Andrews <para>
49762dffc45b6c02abe5d131cb7c49369cf13e09Mark Andrews Use [do not use] TCP when querying name servers. The
49762dffc45b6c02abe5d131cb7c49369cf13e09Mark Andrews default behavior is to use UDP.
f647c0df9fd334b19a5bdc9c252f90d94c0abf1eMark Andrews </para>
f647c0df9fd334b19a5bdc9c252f90d94c0abf1eMark Andrews </listitem>
ecc06cbc32c5a2b91a17e65c1820c9c66313d35cMukund Sivaraman </varlistentry>
ecc06cbc32c5a2b91a17e65c1820c9c66313d35cMukund Sivaraman
ecc06cbc32c5a2b91a17e65c1820c9c66313d35cMukund Sivaraman <varlistentry>
94c7301f6f0ada7aa84ede5808ab8fdec5bae6b5Mark Andrews <term><option>+[no]ttlid</option></term>
94c7301f6f0ada7aa84ede5808ab8fdec5bae6b5Mark Andrews <listitem>
505d311709be77b2bd6ebb2aead84771588f9c29Mark Andrews <para>
505d311709be77b2bd6ebb2aead84771588f9c29Mark Andrews Display [do not display] the TTL when printing the
505d311709be77b2bd6ebb2aead84771588f9c29Mark Andrews record.
5d79b60fc5e4dad4f04da39570517d20a2425f8bMukund Sivaraman </para>
5d79b60fc5e4dad4f04da39570517d20a2425f8bMukund Sivaraman </listitem>
5d79b60fc5e4dad4f04da39570517d20a2425f8bMukund Sivaraman </varlistentry>
5d79b60fc5e4dad4f04da39570517d20a2425f8bMukund Sivaraman
5d79b60fc5e4dad4f04da39570517d20a2425f8bMukund Sivaraman <varlistentry>
5d79b60fc5e4dad4f04da39570517d20a2425f8bMukund Sivaraman <term><option>+[no]ttlunits</option></term>
5d79b60fc5e4dad4f04da39570517d20a2425f8bMukund Sivaraman <listitem>
322e6b5be784d79d15fea9db9440dd821162c574Mark Andrews <para>
322e6b5be784d79d15fea9db9440dd821162c574Mark Andrews Display [do not display] the TTL in friendly human-readable
27bc16fcdc67f9afefefb54ae98dfdae3a5bc1f8Mukund Sivaraman time units of "s", "m", "h", "d", and "w", representing
27bc16fcdc67f9afefefb54ae98dfdae3a5bc1f8Mukund Sivaraman seconds, minutes, hours, days and weeks. Implies +ttlid.
27bc16fcdc67f9afefefb54ae98dfdae3a5bc1f8Mukund Sivaraman </para>
5b13a593fe7d8055992bd12aeb399bdb06e2a533Mukund Sivaraman </listitem>
5b13a593fe7d8055992bd12aeb399bdb06e2a533Mukund Sivaraman </varlistentry>
95bef099e9762c8078c0ba9749293b488727dc58Mark Andrews
95bef099e9762c8078c0ba9749293b488727dc58Mark Andrews <varlistentry>
6c1f9f5c71ff526402f3b3e87749a9ddf102f75eTinderbox User <term><option>+[no]vc</option></term>
95bef099e9762c8078c0ba9749293b488727dc58Mark Andrews <listitem>
464c2c673b879071da66cab5a627baf35c5e0f90Evan Hunt <para>
464c2c673b879071da66cab5a627baf35c5e0f90Evan Hunt Use [do not use] TCP when querying name servers. This
464c2c673b879071da66cab5a627baf35c5e0f90Evan Hunt alternate syntax to <parameter>+[no]tcp</parameter>
226dd20bbd6c6bdeadffa71361d9a0ec61308d69Evan Hunt is provided for backwards compatibility. The "vc"
226dd20bbd6c6bdeadffa71361d9a0ec61308d69Evan Hunt stands for "virtual circuit".
226dd20bbd6c6bdeadffa71361d9a0ec61308d69Evan Hunt </para>
10d7ab44cc72170c527dde8cc9e049e046342769Mark Andrews </listitem>
10d7ab44cc72170c527dde8cc9e049e046342769Mark Andrews </varlistentry>
10d7ab44cc72170c527dde8cc9e049e046342769Mark Andrews
4071efbec0e87b987aaf109f1ae8050aa8ecbcb8Evan Hunt </variablelist>
4071efbec0e87b987aaf109f1ae8050aa8ecbcb8Evan Hunt
4071efbec0e87b987aaf109f1ae8050aa8ecbcb8Evan Hunt </para>
4071efbec0e87b987aaf109f1ae8050aa8ecbcb8Evan Hunt </refsection>
4071efbec0e87b987aaf109f1ae8050aa8ecbcb8Evan Hunt
4071efbec0e87b987aaf109f1ae8050aa8ecbcb8Evan Hunt <refsection><info><title>LOCAL OPTIONS</title></info>
b6214feb63f48e9c08f16394ae5b6902b45b9c38Evan Hunt
b6214feb63f48e9c08f16394ae5b6902b45b9c38Evan Hunt
b6214feb63f48e9c08f16394ae5b6902b45b9c38Evan Hunt <para>
26177be2946c99a34096b7d8c202139dfc0e9760Mark Andrews The <option>-c</option> option sets the query class to
26177be2946c99a34096b7d8c202139dfc0e9760Mark Andrews <parameter>class</parameter>. It can be any valid query class
26177be2946c99a34096b7d8c202139dfc0e9760Mark Andrews which is supported in BIND 9. The default query class is "IN".
26177be2946c99a34096b7d8c202139dfc0e9760Mark Andrews </para>
8e73941f33fad57111142a62d99717abc001912eMark Andrews
8e73941f33fad57111142a62d99717abc001912eMark Andrews <para>
5b1c7ef35bb495820360182b5192689f33f1cc7dMark Andrews The <option>-t</option> option sets the query type to
5b1c7ef35bb495820360182b5192689f33f1cc7dMark Andrews <parameter>type</parameter>. It can be any valid query type
5b1c7ef35bb495820360182b5192689f33f1cc7dMark Andrews which is supported in BIND 9. The default query type is "A",
913d976eca8751851111c0b4357f650295d4aa3dMark Andrews unless the <option>-x</option> option is supplied to indicate
913d976eca8751851111c0b4357f650295d4aa3dMark Andrews a reverse lookup with the "PTR" query type.
913d976eca8751851111c0b4357f650295d4aa3dMark Andrews </para>
7bc21557f3583bab18fd9a002d115aaa5faa5561Mukund Sivaraman
7bc21557f3583bab18fd9a002d115aaa5faa5561Mukund Sivaraman <para>
7bc21557f3583bab18fd9a002d115aaa5faa5561Mukund Sivaraman The <option>-i</option> option sets the reverse domain for
7bc21557f3583bab18fd9a002d115aaa5faa5561Mukund Sivaraman IPv6 addresses to IP6.INT.
7bc21557f3583bab18fd9a002d115aaa5faa5561Mukund Sivaraman </para>
7bc21557f3583bab18fd9a002d115aaa5faa5561Mukund Sivaraman
7bc21557f3583bab18fd9a002d115aaa5faa5561Mukund Sivaraman <para>
a727cdff50383b98a150922e16a470cc63225309Tinderbox User Reverse lookups &mdash; mapping addresses to names &mdash; are
268c4e79c40845fb0005c44d177497bf5fad4518Mark Andrews simplified by the <option>-x</option> option.
268c4e79c40845fb0005c44d177497bf5fad4518Mark Andrews <parameter>addr</parameter> is an IPv4
c8821d124c532e0a65752b378f924d4259499fd3Mark Andrews address in dotted-decimal notation, or a colon-delimited IPv6 address.
c8821d124c532e0a65752b378f924d4259499fd3Mark Andrews <command>mdig</command> automatically performs a lookup for a
c8821d124c532e0a65752b378f924d4259499fd3Mark Andrews query name like <literal>11.12.13.10.in-addr.arpa</literal> and
63042d5b579ae3d43104133007e55c224c698904Evan Hunt sets the query type and class to PTR and IN respectively.
c8821d124c532e0a65752b378f924d4259499fd3Mark Andrews By default, IPv6 addresses are looked up using nibble format
58f7af60e79a5aaf58f6a8861c306d4c617fb1d1Mukund Sivaraman under the IP6.ARPA domain. To use the older RFC1886 method
58f7af60e79a5aaf58f6a8861c306d4c617fb1d1Mukund Sivaraman using the IP6.INT domain specify the <option>-i</option> option.
58f7af60e79a5aaf58f6a8861c306d4c617fb1d1Mukund Sivaraman </para>
58f7af60e79a5aaf58f6a8861c306d4c617fb1d1Mukund Sivaraman
58f7af60e79a5aaf58f6a8861c306d4c617fb1d1Mukund Sivaraman <para>
58f7af60e79a5aaf58f6a8861c306d4c617fb1d1Mukund Sivaraman The local query options are:
9b17fd447c684a84b2f5fbfb04ad6e890ae2078cMukund Sivaraman <variablelist>
9b17fd447c684a84b2f5fbfb04ad6e890ae2078cMukund Sivaraman
9b17fd447c684a84b2f5fbfb04ad6e890ae2078cMukund Sivaraman <varlistentry>
9b17fd447c684a84b2f5fbfb04ad6e890ae2078cMukund Sivaraman <term><option>+[no]aaflag</option></term>
9b17fd447c684a84b2f5fbfb04ad6e890ae2078cMukund Sivaraman <listitem>
e13d04fda918c0c14c2247475bb99e0760d9a6a4Evan Hunt <para>
e13d04fda918c0c14c2247475bb99e0760d9a6a4Evan Hunt A synonym for <parameter>+[no]aaonly</parameter>.
b51391848127d0303bd385a555c76aef57d1b4ebEvan Hunt </para>
b51391848127d0303bd385a555c76aef57d1b4ebEvan Hunt </listitem>
b51391848127d0303bd385a555c76aef57d1b4ebEvan Hunt </varlistentry>
35928b7e1af8ea4d01a2855ab833dfe59d2345faMukund Sivaraman
bfd4b9e11aa9e8c2b43022a6b7a896b26bd5d7a0Witold Krecicki <varlistentry>
bfd4b9e11aa9e8c2b43022a6b7a896b26bd5d7a0Witold Krecicki <term><option>+[no]aaonly</option></term>
29868ebbe3c7bc06f833e329ea190dc442331bf1Mark Andrews <listitem>
29868ebbe3c7bc06f833e329ea190dc442331bf1Mark Andrews <para>
29868ebbe3c7bc06f833e329ea190dc442331bf1Mark Andrews Sets the "aa" flag in the query.
92cc6acdff1ecbf157e4ab0efe3f79367233f022Mark Andrews </para>
92cc6acdff1ecbf157e4ab0efe3f79367233f022Mark Andrews </listitem>
2f450fcd295795fb1771432e098af3d6e52c8a0bMark Andrews </varlistentry>
e939674d53a127ddeeaf4b41fd72933f0b493308Mark Andrews
e939674d53a127ddeeaf4b41fd72933f0b493308Mark Andrews <varlistentry>
e939674d53a127ddeeaf4b41fd72933f0b493308Mark Andrews <term><option>+[no]adflag</option></term>
e939674d53a127ddeeaf4b41fd72933f0b493308Mark Andrews <listitem>
6b8519147a5c24b4a5942042e83fd539d0d445ccEvan Hunt <para>
6b8519147a5c24b4a5942042e83fd539d0d445ccEvan Hunt Set [do not set] the AD (authentic data) bit in the
6b8519147a5c24b4a5942042e83fd539d0d445ccEvan Hunt query. This requests the server to return whether
09f82f50798e170b172e6ba358ed123536243839Evan Hunt all of the answer and authority sections have all
09f82f50798e170b172e6ba358ed123536243839Evan Hunt been validated as secure according to the security
09f82f50798e170b172e6ba358ed123536243839Evan Hunt policy of the server. AD=1 indicates that all records
8475bed9de77920f884f1ae296f581efbd1e42f8Mark Andrews have been validated as secure and the answer is not
861aa4e9039e6f354545177c4c2323b485549602Mark Andrews from a OPT-OUT range. AD=0 indicate that some part
8475bed9de77920f884f1ae296f581efbd1e42f8Mark Andrews of the answer was insecure or not validated. This
35928b7e1af8ea4d01a2855ab833dfe59d2345faMukund Sivaraman bit is set by default.
821ff5e8fa1df2e09fea157ee3e298eef6cf4ec9Evan Hunt </para>
821ff5e8fa1df2e09fea157ee3e298eef6cf4ec9Evan Hunt </listitem>
821ff5e8fa1df2e09fea157ee3e298eef6cf4ec9Evan Hunt </varlistentry>
f06b6a9b14509a3b473f52dd797bc490f6f6511dMark Andrews
f06b6a9b14509a3b473f52dd797bc490f6f6511dMark Andrews <varlistentry>
f06b6a9b14509a3b473f52dd797bc490f6f6511dMark Andrews <term><option>+bufsize=B</option></term>
aa9b64060fb6e946a920e957805f564d149e88e0Evan Hunt <listitem>
aa9b64060fb6e946a920e957805f564d149e88e0Evan Hunt <para>
aa9b64060fb6e946a920e957805f564d149e88e0Evan Hunt Set the UDP message buffer size advertised using EDNS0
412f873b9fafa0f8161a1203e7731d9d67052e49Mark Andrews to <parameter>B</parameter> bytes. The maximum and
412f873b9fafa0f8161a1203e7731d9d67052e49Mark Andrews minimum sizes of this buffer are 65535 and 0 respectively.
72ac929f2bfe186ab4fe2d9425685d6ef419f200Mark Andrews Values outside this range are rounded up or down
72ac929f2bfe186ab4fe2d9425685d6ef419f200Mark Andrews appropriately. Values other than zero will cause a
72ac929f2bfe186ab4fe2d9425685d6ef419f200Mark Andrews EDNS query to be sent.
a70fc47e9dc165175e77f091076559748858a488Mark Andrews </para>
a70fc47e9dc165175e77f091076559748858a488Mark Andrews </listitem>
0526268c2b2806ceb67032e0bfee708b6e70e004Mark Andrews </varlistentry>
0526268c2b2806ceb67032e0bfee708b6e70e004Mark Andrews
0526268c2b2806ceb67032e0bfee708b6e70e004Mark Andrews <varlistentry>
abf9790162ae88bf74d3959f5ac0dd2090a9a9fcTinderbox User <term><option>+[no]cdflag</option></term>
932715fbbe449e814612a9ae39eac885548de5bfEvan Hunt <listitem>
932715fbbe449e814612a9ae39eac885548de5bfEvan Hunt <para>
9d8169cbf8390c9e2e9707026fd078e282811069Mark Andrews Set [do not set] the CD (checking disabled) bit in
f824c65d1fb6a2490b03228e63cc43dae6844f73Mark Andrews the query. This requests the server to not perform
90174e64f49bb7cba6a83fb665ebcb597aad7b57Evan Hunt DNSSEC validation of responses.
b9d6758fc606245d79fd6e03a31c76c586694377Mark Andrews </para>
b9d6758fc606245d79fd6e03a31c76c586694377Mark Andrews </listitem>
90174e64f49bb7cba6a83fb665ebcb597aad7b57Evan Hunt </varlistentry>
6588a2b404365cea59e71a3f639349272600f68dMark Andrews
6588a2b404365cea59e71a3f639349272600f68dMark Andrews <varlistentry>
6588a2b404365cea59e71a3f639349272600f68dMark Andrews <term><option>+[no]cookie<optional>=####</optional></option></term>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <listitem>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt <para>
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt Send a COOKIE EDNS option, with optional value.
35928b7e1af8ea4d01a2855ab833dfe59d2345faMukund Sivaraman Replaying a COOKIE from a previous response will allow
9260c1157d12ef716fe6227fd8af845ec7fd1eedMukund Sivaraman the server to identify a previous client. The default
9260c1157d12ef716fe6227fd8af845ec7fd1eedMukund Sivaraman is <option>+nocookie</option>.
9260c1157d12ef716fe6227fd8af845ec7fd1eedMukund Sivaraman </para>
930719e8767e0a58ca1b57cfbbb2b07b885afd14Mukund Sivaraman </listitem>
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt </varlistentry>
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt <varlistentry>
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt <term><option>+[no]dnssec</option></term>
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt <listitem>
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt <para>
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt Requests DNSSEC records be sent by setting the DNSSEC
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt OK bit (DO) in the OPT record in the additional section
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt of the query.
b66b333f59cf51ef87f973084a5023acd9317fb2Evan Hunt </para>
a625502bdd149be06bd0cc06000c3dc9e4a813b9Tinderbox User </listitem>
a239044323418956d7d48c14d61d19f721cc5ba5Witold Krecicki </varlistentry>
a239044323418956d7d48c14d61d19f721cc5ba5Witold Krecicki
18749940aee8ee6cf8fc6a81f659819310d5aa78Mark Andrews <varlistentry>
65d59a4307d00f6b4e278b730c278502e5449da8Mark Andrews <term><option>+[no]edns[=#]</option></term>
65d59a4307d00f6b4e278b730c278502e5449da8Mark Andrews <listitem>
18749940aee8ee6cf8fc6a81f659819310d5aa78Mark Andrews <para>
ffdd3bc812a140fb0e3d5b6f0df0a4efbfe4b412Mark Andrews Specify the EDNS version to query with. Valid values
ffdd3bc812a140fb0e3d5b6f0df0a4efbfe4b412Mark Andrews are 0 to 255. Setting the EDNS version will cause
09f4e41912d08b5c1685f4d23bd19d32f63db935Mark Andrews a EDNS query to be sent. <option>+noedns</option>
09f4e41912d08b5c1685f4d23bd19d32f63db935Mark Andrews clears the remembered EDNS version. EDNS is set to
09f4e41912d08b5c1685f4d23bd19d32f63db935Mark Andrews 0 by default.
0dc485ffb6ca6e90979561db1705f6a89be8b8edMark Andrews </para>
c7e5ba1d17f2db135b2c1ab192c2746189394fa2Mark Andrews </listitem>
0dc485ffb6ca6e90979561db1705f6a89be8b8edMark Andrews </varlistentry>
c7e5ba1d17f2db135b2c1ab192c2746189394fa2Mark Andrews
24231afa05b4ceefe8f0aebcdabe9ccf002346f9Mark Andrews <varlistentry>
24231afa05b4ceefe8f0aebcdabe9ccf002346f9Mark Andrews <term><option>+[no]ednsflags[=#]</option></term>
8a0b6b3901b34530a850d78758fe4e5b6218d193Mark Andrews <listitem>
8a0b6b3901b34530a850d78758fe4e5b6218d193Mark Andrews <para>
8a0b6b3901b34530a850d78758fe4e5b6218d193Mark Andrews Set the must-be-zero EDNS flags bits (Z bits) to the
2a12984ce69f7f49dc3aeef1b216e0c7c93373acMark Andrews specified value. Decimal, hex and octal encodings are
2a12984ce69f7f49dc3aeef1b216e0c7c93373acMark Andrews accepted. Setting a named flag (e.g. DO) will silently be
40c619daeeb99015afa31b1a4a76d6c20b0a3fc6Evan Hunt ignored. By default, no Z bits are set.
40c619daeeb99015afa31b1a4a76d6c20b0a3fc6Evan Hunt </para>
40c619daeeb99015afa31b1a4a76d6c20b0a3fc6Evan Hunt </listitem>
87e7d08a8bae58ab8edacaa990a4234063c23793Mar Andrews </varlistentry>
87e7d08a8bae58ab8edacaa990a4234063c23793Mar Andrews
87e7d08a8bae58ab8edacaa990a4234063c23793Mar Andrews <varlistentry>
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt <term><option>+[no]ednsopt[=code[:value]]</option></term>
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt <listitem>
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt <para>
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt Specify EDNS option with code point <option>code</option>
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt and optionally payload of <option>value</option> as a
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt hexadecimal string. <option>+noednsopt</option>
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt clears the EDNS options to be sent.
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt </para>
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt </listitem>
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt </varlistentry>
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt <varlistentry>
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt <term><option>+[no]expire</option></term>
a00f9e2f50675bd43cc6a9fe2669709162a2ccb4Evan Hunt <listitem>
e6d0a391f5f9b18f5bd497aefff269e474ee560cWitold Krecicki <para>
e6d0a391f5f9b18f5bd497aefff269e474ee560cWitold Krecicki Send an EDNS Expire option.
e6d0a391f5f9b18f5bd497aefff269e474ee560cWitold Krecicki </para>
e6d0a391f5f9b18f5bd497aefff269e474ee560cWitold Krecicki </listitem>
98a7f8c7ae44bb98d5469cb3a4240c59abceba7fMark Andrews </varlistentry>
98a7f8c7ae44bb98d5469cb3a4240c59abceba7fMark Andrews
98a7f8c7ae44bb98d5469cb3a4240c59abceba7fMark Andrews <varlistentry>
8d80b4939dd27dc3136ab152706160c613baa93aMark Andrews <term><option>+[no]nsid</option></term>
8d80b4939dd27dc3136ab152706160c613baa93aMark Andrews <listitem>
8d80b4939dd27dc3136ab152706160c613baa93aMark Andrews <para>
3836539e8747c65b789037b8ca8cd47badbb991fJeremy C. Reed Include an EDNS name server ID request when sending
5c41d472275c096be8aafb239a301b9d7c0a2cd9Jeremy C. Reed a query.
5c41d472275c096be8aafb239a301b9d7c0a2cd9Jeremy C. Reed </para>
a21c415687a855f84fbf10db91671b1341e8b990Mark Andrews </listitem>
a21c415687a855f84fbf10db91671b1341e8b990Mark Andrews </varlistentry>
a21c415687a855f84fbf10db91671b1341e8b990Mark Andrews
a21c415687a855f84fbf10db91671b1341e8b990Mark Andrews <varlistentry>
47115d91ef32317a2c0eb9daaf9c910757568de0Mark Andrews <term><option>+[no]recurse</option></term>
47115d91ef32317a2c0eb9daaf9c910757568de0Mark Andrews <listitem>
4dd41c7d5976ff6889e4fbf306036f4256af409aMark Andrews <para>
f6e45a5c54b7af4b1c303e8d3ff3b7d78622df9eMark Andrews Toggle the setting of the RD (recursion desired) bit
f6e45a5c54b7af4b1c303e8d3ff3b7d78622df9eMark Andrews in the query. This bit is set by default, which means
705d56b47a932cc277f980755e80ac4f46a18a64Mark Andrews <command>mdig</command> normally sends recursive
705d56b47a932cc277f980755e80ac4f46a18a64Mark Andrews queries.
ff55c577ba8a95f763b8982b7ab5e4a980209a09Mark Andrews </para>
ff55c577ba8a95f763b8982b7ab5e4a980209a09Mark Andrews </listitem>
ff55c577ba8a95f763b8982b7ab5e4a980209a09Mark Andrews </varlistentry>
e0a30050c8516a3d54a4f8dcdd88435704a8a3edMark Andrews
e0a30050c8516a3d54a4f8dcdd88435704a8a3edMark Andrews <varlistentry>
dd1bcab25cf91eccb77060023d94a306411f7f14Mark Andrews <term><option>+retry=T</option></term>
dd1bcab25cf91eccb77060023d94a306411f7f14Mark Andrews <listitem>
dd1bcab25cf91eccb77060023d94a306411f7f14Mark Andrews <para>
741b63c8695bab0582e3f9f308993ab53a60b377Mark Andrews Sets the number of times to retry UDP queries to
741b63c8695bab0582e3f9f308993ab53a60b377Mark Andrews server to <parameter>T</parameter> instead of the
741b63c8695bab0582e3f9f308993ab53a60b377Mark Andrews default, 2. Unlike <parameter>+tries</parameter>,
09177840c73c1edec0d085dd8d92f225ba371014Mark Andrews this does not include the initial query.
09177840c73c1edec0d085dd8d92f225ba371014Mark Andrews </para>
09177840c73c1edec0d085dd8d92f225ba371014Mark Andrews </listitem>
f43e5c8ed2e68b7064c909b1fece6d976799b8dbMark Andrews </varlistentry>
f43e5c8ed2e68b7064c909b1fece6d976799b8dbMark Andrews
7b1f63dcd1a20a7c66b869e323efcdbdb0612a0dMark Andrews <varlistentry>
7b1f63dcd1a20a7c66b869e323efcdbdb0612a0dMark Andrews <term><option>+[no]subnet=addr[/prefix-length]</option></term>
fe51e068f0892ae9258d9fd0e14fe2a469ff8edfMark Andrews <listitem>
fe51e068f0892ae9258d9fd0e14fe2a469ff8edfMark Andrews <para>
fe51e068f0892ae9258d9fd0e14fe2a469ff8edfMark Andrews Send (don't send) an EDNS Client Subnet option with the
0f2ecf4b5c6721629162d4fd32826189d33a9b03Mark Andrews specified IP address or network prefix.
0f2ecf4b5c6721629162d4fd32826189d33a9b03Mark Andrews </para>
0f2ecf4b5c6721629162d4fd32826189d33a9b03Mark Andrews <para>
757e405d3c22e263dbd4aef75f7a188f891625b9Mark Andrews <command>mdig +subnet=0.0.0.0/0</command>, or simply
e8742e9598a72a429cf2ca05c6c1bc3de9b35283Tinderbox User <command>mdig +subnet=0</command> for short, sends an EDNS
d261093639c90f1b13418706ea9077d690a29eb0Evan Hunt client-subnet option with an empty address and a source
226339ed435db90da8e072ef46e2c27cf0dc687bEvan Hunt prefix-length of zero, which signals a resolver that
226339ed435db90da8e072ef46e2c27cf0dc687bEvan Hunt the client's address information must
226339ed435db90da8e072ef46e2c27cf0dc687bEvan Hunt <emphasis>not</emphasis> be used when resolving
226339ed435db90da8e072ef46e2c27cf0dc687bEvan Hunt this query.
295a711b72b075a77065b7a952860269b5ae5d1dMark Andrews </para>
757e405d3c22e263dbd4aef75f7a188f891625b9Mark Andrews </listitem>
295a711b72b075a77065b7a952860269b5ae5d1dMark Andrews </varlistentry>
aec8a3b7cff6a144bfd9d1b72415dd644a0bd828Evan Hunt
757e405d3c22e263dbd4aef75f7a188f891625b9Mark Andrews <varlistentry>
aec8a3b7cff6a144bfd9d1b72415dd644a0bd828Evan Hunt <term><option>+timeout=T</option></term>
4523c3b371e0e8aa6451aefcf2ba593c4d16ea31Evan Hunt <listitem>
4523c3b371e0e8aa6451aefcf2ba593c4d16ea31Evan Hunt <para>
4523c3b371e0e8aa6451aefcf2ba593c4d16ea31Evan Hunt Sets the timeout for a query to
a0ef8211d3bb5d4a7e56145e014c3da3466051c8Mark Andrews <parameter>T</parameter> seconds. The default
a0ef8211d3bb5d4a7e56145e014c3da3466051c8Mark Andrews timeout is 5 seconds for UDP transport and 10 for TCP.
a0ef8211d3bb5d4a7e56145e014c3da3466051c8Mark Andrews An attempt to set <parameter>T</parameter> to less
a0ef8211d3bb5d4a7e56145e014c3da3466051c8Mark Andrews than 1 will result
3fa134363f99816b36e30822a098196810ae6f20Mark Andrews in a query timeout of 1 second being applied.
3fa134363f99816b36e30822a098196810ae6f20Mark Andrews </para>
3fa134363f99816b36e30822a098196810ae6f20Mark Andrews </listitem>
5a49f61ca968283d59c97e583fd6fb02ecaeb773Mark Andrews </varlistentry>
5a49f61ca968283d59c97e583fd6fb02ecaeb773Mark Andrews
8b29fc0b7a13db404f1a13fcfad42c2e7cfbe25bMark Andrews <varlistentry>
0409e7451ce6898ba2e3fab401767df706b73fbfMark Andrews <term><option>+tries=T</option></term>
0409e7451ce6898ba2e3fab401767df706b73fbfMark Andrews <listitem>
075a3d60c23140f05db10d70126ff271ef6469c9Mark Andrews <para>
075a3d60c23140f05db10d70126ff271ef6469c9Mark Andrews Sets the number of times to try UDP queries to server
075a3d60c23140f05db10d70126ff271ef6469c9Mark Andrews to <parameter>T</parameter> instead of the default,
4ca7391e640bd4f0abb31508019d3bd62819fa8eMark Andrews 3. If <parameter>T</parameter> is less than or equal
4ca7391e640bd4f0abb31508019d3bd62819fa8eMark Andrews to zero, the number of tries is silently rounded up
4ca7391e640bd4f0abb31508019d3bd62819fa8eMark Andrews to 1.
4ca7391e640bd4f0abb31508019d3bd62819fa8eMark Andrews </para>
4ca7391e640bd4f0abb31508019d3bd62819fa8eMark Andrews </listitem>
fbd9aaa58c32abaeab1bd3ca6943b18ce19ea023Mark Andrews </varlistentry>
fbd9aaa58c32abaeab1bd3ca6943b18ce19ea023Mark Andrews
fbd9aaa58c32abaeab1bd3ca6943b18ce19ea023Mark Andrews <varlistentry>
02093e4c3b98ec8eca1b6b3eb9a895054ff4f1c8Mark Andrews <term><option>+udptimeout=T</option></term>
02093e4c3b98ec8eca1b6b3eb9a895054ff4f1c8Mark Andrews <listitem>
02093e4c3b98ec8eca1b6b3eb9a895054ff4f1c8Mark Andrews <para>
9b956d342e93ab60d5d9367785b26546f7e49391Mark Andrews Sets the timeout between UDP query retries.
9b956d342e93ab60d5d9367785b26546f7e49391Mark Andrews </para>
9b956d342e93ab60d5d9367785b26546f7e49391Mark Andrews </listitem>
5855fd79e375c74fc9df57ce0b4c4ef1b9fcdc3eMark Andrews </varlistentry>
5855fd79e375c74fc9df57ce0b4c4ef1b9fcdc3eMark Andrews
5855fd79e375c74fc9df57ce0b4c4ef1b9fcdc3eMark Andrews <varlistentry>
c7e5ba1d17f2db135b2c1ab192c2746189394fa2Mark Andrews <term><option>+[no]unknownformat</option></term>
dc3912f3caac1104fef441fd18571b7a975708eaMark Andrews <listitem>
dc3912f3caac1104fef441fd18571b7a975708eaMark Andrews <para>
dc3912f3caac1104fef441fd18571b7a975708eaMark Andrews Print all RDATA in unknown RR type presentation format
7d0dfa63cf3228b56053815bdf25da7d0e6dc501Mark Andrews (RFC 3597). The default is to print RDATA for known types
7d0dfa63cf3228b56053815bdf25da7d0e6dc501Mark Andrews in the type's presentation format.
7d0dfa63cf3228b56053815bdf25da7d0e6dc501Mark Andrews </para>
18ba804f3ab6a7fea10404bb6675a49b59a153c5Mark Andrews </listitem>
18ba804f3ab6a7fea10404bb6675a49b59a153c5Mark Andrews </varlistentry>
18ba804f3ab6a7fea10404bb6675a49b59a153c5Mark Andrews
ec3dbae9eb0fdbda37c76c2b41e819c7982be1c4Mukund Sivaraman <varlistentry>
ec3dbae9eb0fdbda37c76c2b41e819c7982be1c4Mukund Sivaraman <term><option>+[no]zflag</option></term>
ec3dbae9eb0fdbda37c76c2b41e819c7982be1c4Mukund Sivaraman <listitem>
ec3dbae9eb0fdbda37c76c2b41e819c7982be1c4Mukund Sivaraman <para>
ec3dbae9eb0fdbda37c76c2b41e819c7982be1c4Mukund Sivaraman Set [do not set] the last unassigned DNS header flag in a
ec3dbae9eb0fdbda37c76c2b41e819c7982be1c4Mukund Sivaraman DNS query. This flag is off by default.
ec3dbae9eb0fdbda37c76c2b41e819c7982be1c4Mukund Sivaraman </para>
bf350c9f1ab59ac03e34e8063b4ce58662daec2aMukund Sivaraman </listitem>
bf350c9f1ab59ac03e34e8063b4ce58662daec2aMukund Sivaraman </varlistentry>
bf350c9f1ab59ac03e34e8063b4ce58662daec2aMukund Sivaraman
bf350c9f1ab59ac03e34e8063b4ce58662daec2aMukund Sivaraman </variablelist>
bf350c9f1ab59ac03e34e8063b4ce58662daec2aMukund Sivaraman
bf350c9f1ab59ac03e34e8063b4ce58662daec2aMukund Sivaraman </para>
bf350c9f1ab59ac03e34e8063b4ce58662daec2aMukund Sivaraman </refsection>
bf350c9f1ab59ac03e34e8063b4ce58662daec2aMukund Sivaraman
bf350c9f1ab59ac03e34e8063b4ce58662daec2aMukund Sivaraman <refsection><info><title>SEE ALSO</title></info>
bf350c9f1ab59ac03e34e8063b4ce58662daec2aMukund Sivaraman
bf350c9f1ab59ac03e34e8063b4ce58662daec2aMukund Sivaraman <para><citerefentry>
bf350c9f1ab59ac03e34e8063b4ce58662daec2aMukund Sivaraman <refentrytitle>dig</refentrytitle><manvolnum>1</manvolnum>
bf350c9f1ab59ac03e34e8063b4ce58662daec2aMukund Sivaraman </citerefentry>,
bf350c9f1ab59ac03e34e8063b4ce58662daec2aMukund Sivaraman <citetitle>RFC1035</citetitle>.
bf350c9f1ab59ac03e34e8063b4ce58662daec2aMukund Sivaraman </para>
bf350c9f1ab59ac03e34e8063b4ce58662daec2aMukund Sivaraman </refsection>
b750a49f3f599023cf32997f72924d4c2a5288d7Evan Hunt</refentry>
b750a49f3f599023cf32997f72924d4c2a5288d7Evan Hunt