dig.docbook revision 83a28ca274521e15086fc39febde507bcc4e145e
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<!ENTITY mdash "—">]>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen - Copyright (C) 2000-2011, 2013-2016 Internet Systems Consortium, Inc. ("ISC")
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen - This Source Code Form is subject to the terms of the Mozilla Public
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen - License, v. 2.0. If a copy of the MPL was not distributed with this
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen - file, You can obtain one at http://mozilla.org/MPL/2.0/.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<!-- Converted by db4-upgrade version 1.0 -->
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen<refentry xmlns:db="http://docbook.org/ns/docbook" version="5.0" xml:id="man.dig">
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <refentryinfo>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <corpauthor>Internet Systems Consortium, Inc.</corpauthor>
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen </refentryinfo>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen </refnamediv>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <refsynopsisdiv>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <arg choice="opt" rep="norepeat">@server</arg>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <arg choice="opt" rep="norepeat"><option>-b <replaceable class="parameter">address</replaceable></option></arg>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <arg choice="opt" rep="norepeat"><option>-c <replaceable class="parameter">class</replaceable></option></arg>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <arg choice="opt" rep="norepeat"><option>-f <replaceable class="parameter">filename</replaceable></option></arg>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <arg choice="opt" rep="norepeat"><option>-k <replaceable class="parameter">filename</replaceable></option></arg>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <arg choice="opt" rep="norepeat"><option>-m</option></arg>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <arg choice="opt" rep="norepeat"><option>-p <replaceable class="parameter">port#</replaceable></option></arg>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <arg choice="opt" rep="norepeat"><option>-q <replaceable class="parameter">name</replaceable></option></arg>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <arg choice="opt" rep="norepeat"><option>-t <replaceable class="parameter">type</replaceable></option></arg>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <arg choice="opt" rep="norepeat"><option>-v</option></arg>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <arg choice="opt" rep="norepeat"><option>-x <replaceable class="parameter">addr</replaceable></option></arg>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <arg choice="opt" rep="norepeat"><option>-y <replaceable class="parameter"><optional>hmac:</optional>name:key</replaceable></option></arg>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <arg choice="opt" rep="norepeat"><option>-4</option></arg>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <arg choice="opt" rep="norepeat"><option>-6</option></arg>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen </cmdsynopsis>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <arg choice="opt" rep="norepeat"><option>-h</option></arg>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen </cmdsynopsis>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <arg choice="opt" rep="repeat">global-queryopt</arg>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen </cmdsynopsis>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen </refsynopsisdiv>
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen <refsection><info><title>DESCRIPTION</title></info>
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen (domain information groper) is a flexible tool
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen for interrogating DNS name servers. It performs DNS lookups and
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen displays the answers that are returned from the name server(s) that
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen were queried. Most DNS administrators use <command>dig</command> to
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen troubleshoot DNS problems because of its flexibility, ease of use and
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen clarity of output. Other lookup tools tend to have less functionality
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen Although <command>dig</command> is normally used with
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen arguments, it also has a batch mode of operation for reading lookup
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen requests from a file. A brief summary of its command-line arguments
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen and options is printed when the <option>-h</option> option is given.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen Unlike earlier versions, the BIND 9 implementation of
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <command>dig</command> allows multiple lookups to be issued
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen command line.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen Unless it is told to query a specific name server,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <command>dig</command> will try each of the servers listed in
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <filename>/etc/resolv.conf</filename>. If no usable server addresses
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen are found, <command>dig</command> will send the query to the local
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen When no command line arguments or options are given,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <command>dig</command> will perform an NS query for "." (the root).
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen It is possible to set per-user defaults for <command>dig</command> via
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen <filename>${HOME}/.digrc</filename>. This file is read and
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen any options in it
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen are applied before the command line arguments.
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen The IN and CH class names overlap with the IN and CH top level
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen domain names. Either use the <option>-t</option> and
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen <option>-c</option> options to specify the type and class,
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen use the <option>-q</option> the specify the domain name, or
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen use "IN." and "CH." when looking up these top level domains.
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen </refsection>
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen <refsection><info><title>SIMPLE USAGE</title></info>
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen A typical invocation of <command>dig</command> looks like:
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen <programlisting> dig @server name type </programlisting>
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen <variablelist>
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen <varlistentry>
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen is the name or IP address of the name server to query. This
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen can be an IPv4 address in dotted-decimal notation or an IPv6
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen address in colon-delimited notation. When the supplied
78b8305b02a44cf40c7c142ecb6572b431ffbf47Timo Sirainen <parameter>server</parameter> argument is a hostname,
78b8305b02a44cf40c7c142ecb6572b431ffbf47Timo Sirainen <command>dig</command> resolves that name before querying
78b8305b02a44cf40c7c142ecb6572b431ffbf47Timo Sirainen that name server.
78b8305b02a44cf40c7c142ecb6572b431ffbf47Timo Sirainen If no <parameter>server</parameter> argument is
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen address is found there, it queries the name server at
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen that address. If either of the <option>-4</option> or
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen only addresses for the corresponding transport
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen will be tried. If no usable addresses are found,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <command>dig</command> will send the query to the
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen local host. The reply from the name server that
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen responds is displayed.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen </varlistentry>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <varlistentry>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen is the name of the resource record that is to be looked up.
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen </varlistentry>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <varlistentry>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen indicates what type of query is required —
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen ANY, A, MX, SIG, etc.
a8b723249ec03ac5d39261c033df5d13aa590cd7Timo Sirainen <parameter>type</parameter> can be any valid query
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <parameter>type</parameter> argument is supplied,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <command>dig</command> will perform a lookup for an
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen </varlistentry>
9aa52288a4b53186d81b0ec9afa7d9e0a8ee8753Timo Sirainen </variablelist>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen </refsection>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <refsection><info><title>OPTIONS</title></info>
9aa52288a4b53186d81b0ec9afa7d9e0a8ee8753Timo Sirainen <variablelist>
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen <varlistentry>
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen Use IPv4 only.
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen </varlistentry>
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen <varlistentry>
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen Use IPv6 only.
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen </varlistentry>
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen <varlistentry>
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen <term>-b <replaceable class="parameter">address<optional>#port</optional></replaceable></term>
e68309fcfa2eaa88217fd51e7b4900fc9c20ef5dTimo Sirainen Set the source IP address of the query.
e68309fcfa2eaa88217fd51e7b4900fc9c20ef5dTimo Sirainen The <parameter>address</parameter> must be a valid address on
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen one of the host's network interfaces, or "0.0.0.0" or "::". An
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen optional port may be specified by appending "#<port>"
db7c9201c88e3d9bee10485194ee5b0c67249916Timo Sirainen </varlistentry>
db7c9201c88e3d9bee10485194ee5b0c67249916Timo Sirainen <varlistentry>
db7c9201c88e3d9bee10485194ee5b0c67249916Timo Sirainen <term>-c <replaceable class="parameter">class</replaceable></term>
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen Set the query class. The
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen default <parameter>class</parameter> is IN; other classes
e68309fcfa2eaa88217fd51e7b4900fc9c20ef5dTimo Sirainen are HS for Hesiod records or CH for Chaosnet records.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen </varlistentry>
9aa52288a4b53186d81b0ec9afa7d9e0a8ee8753Timo Sirainen <varlistentry>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <term>-f <replaceable class="parameter">file</replaceable></term>
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen Batch mode: <command>dig</command> reads a list of lookup
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen requests to process from the
e68309fcfa2eaa88217fd51e7b4900fc9c20ef5dTimo Sirainen given <parameter>file</parameter>. Each line in the file
e68309fcfa2eaa88217fd51e7b4900fc9c20ef5dTimo Sirainen should be organized in the same way they would be
dda2c506c8fc8ac2f88272de4523ded42baa0aa0Timo Sirainen presented as queries to
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <command>dig</command> using the command-line interface.
345212e8f61ebf14ff4f80df26df9e655eb5121eTimo Sirainen </varlistentry>
345212e8f61ebf14ff4f80df26df9e655eb5121eTimo Sirainen <varlistentry>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen Do reverse IPv6 lookups using the obsolete RFC1886 IP6.INT
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen domain, which is no longer in use. Obsolete bit string
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen label queries (RFC2874) are not attempted.
ab6315aa0d5c83f4f1dc98b3715826a686aebffdTimo Sirainen </varlistentry>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <varlistentry>
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen <term>-k <replaceable class="parameter">keyfile</replaceable></term>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen Sign queries using TSIG using a key read from the given file.
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen Key files can be generated using
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen <citerefentry>
02b79f9c2636da1829eee5b92753602bba8b67edTimo Sirainen <refentrytitle>tsig-keygen</refentrytitle><manvolnum>8</manvolnum>
02b79f9c2636da1829eee5b92753602bba8b67edTimo Sirainen </citerefentry>.
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen When using TSIG authentication with <command>dig</command>,
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen the name server that is queried needs to know the key and
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen algorithm that is being used. In BIND, this is done by
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen </varlistentry>
ab6315aa0d5c83f4f1dc98b3715826a686aebffdTimo Sirainen <varlistentry>
345212e8f61ebf14ff4f80df26df9e655eb5121eTimo Sirainen Enable memory usage debugging.
ab6315aa0d5c83f4f1dc98b3715826a686aebffdTimo Sirainen <!-- It enables ISC_MEM_DEBUGTRACE and ISC_MEM_DEBUGRECORD
7f773564b94e6054a40d3785cb63c29f1e4d4deeTimo Sirainen documented in include/isc/mem.h -->
ab6315aa0d5c83f4f1dc98b3715826a686aebffdTimo Sirainen </varlistentry>
ab6315aa0d5c83f4f1dc98b3715826a686aebffdTimo Sirainen <varlistentry>
ab6315aa0d5c83f4f1dc98b3715826a686aebffdTimo Sirainen <term>-p <replaceable class="parameter">port</replaceable></term>
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen Send the query to a non-standard port on the server,
7f773564b94e6054a40d3785cb63c29f1e4d4deeTimo Sirainen instead of the default port 53. This option would be used
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen to test a name server that has been configured to listen
f0569d9fbb25c8437760be69f194595a841ad711Timo Sirainen for queries on a non-standard port number.
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen </varlistentry>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <varlistentry>
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen <term>-q <replaceable class="parameter">name</replaceable></term>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen The domain name to query. This is useful to distinguish
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen the <parameter>name</parameter> from other arguments.
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen </varlistentry>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <varlistentry>
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen <term>-t <replaceable class="parameter">type</replaceable></term>
7f773564b94e6054a40d3785cb63c29f1e4d4deeTimo Sirainen The resource record type to query. It can be any valid query type
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen supported in BIND 9. The default query type is "A", unless the
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <option>-x</option> option is supplied to indicate a reverse lookup.
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen A zone transfer can be requested by specifying a type of AXFR. When
96c253a039f102fa78a313ee05200ab3970112dcTimo Sirainen an incremental zone transfer (IXFR) is required, set the
96c253a039f102fa78a313ee05200ab3970112dcTimo Sirainen <parameter>type</parameter> to <literal>ixfr=N</literal>.
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen The incremental zone transfer will contain the changes
dda2c506c8fc8ac2f88272de4523ded42baa0aa0Timo Sirainen made to the zone since the serial number in the zone's SOA
345212e8f61ebf14ff4f80df26df9e655eb5121eTimo Sirainen </varlistentry>
345212e8f61ebf14ff4f80df26df9e655eb5121eTimo Sirainen <varlistentry>
96c253a039f102fa78a313ee05200ab3970112dcTimo Sirainen Print the version number and exit.
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen </varlistentry>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <varlistentry>
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <term>-x <replaceable class="parameter">addr</replaceable></term>
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen Simplified reverse lookups, for mapping addresses to
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen names. The <parameter>addr</parameter> is an IPv4 address
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen in dotted-decimal notation, or a colon-delimited IPv6
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen address. When the <option>-x</option> is used, there is no
e68309fcfa2eaa88217fd51e7b4900fc9c20ef5dTimo Sirainen need to provide
9aa52288a4b53186d81b0ec9afa7d9e0a8ee8753Timo Sirainen the <parameter>name</parameter>, <parameter>class</parameter>
dda2c506c8fc8ac2f88272de4523ded42baa0aa0Timo Sirainen arguments. <command>dig</command> automatically performs a
01cbf4ac5d44137ab434791be7f838d98d0fcf3bTimo Sirainen lookup for a name like
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen <literal>94.2.0.192.in-addr.arpa</literal> and sets the
ab6315aa0d5c83f4f1dc98b3715826a686aebffdTimo Sirainen query type and class to PTR and IN respectively. IPv6
ab6315aa0d5c83f4f1dc98b3715826a686aebffdTimo Sirainen addresses are looked up using nibble format under the
ab6315aa0d5c83f4f1dc98b3715826a686aebffdTimo Sirainen IP6.ARPA domain (but see also the <option>-i</option>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen </varlistentry>
ab6315aa0d5c83f4f1dc98b3715826a686aebffdTimo Sirainen <varlistentry>
ab6315aa0d5c83f4f1dc98b3715826a686aebffdTimo Sirainen <term>-y <replaceable class="parameter"><optional>hmac:</optional>keyname:secret</replaceable></term>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen Sign queries using TSIG with the given authentication key.
e68309fcfa2eaa88217fd51e7b4900fc9c20ef5dTimo Sirainen <parameter>keyname</parameter> is the name of the key, and
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <parameter>secret</parameter> is the base64 encoded shared secret.
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <parameter>hmac</parameter> is the name of the key algorithm;
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen valid choices are <literal>hmac-md5</literal>,
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <literal>hmac-sha1</literal>, <literal>hmac-sha224</literal>,
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <literal>hmac-sha256</literal>, <literal>hmac-sha384</literal>, or
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <literal>hmac-sha512</literal>. If <parameter>hmac</parameter>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen is not specified, the default is <literal>hmac-md5</literal>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen or if MD5 was disabled <literal>hmac-sha256</literal>.
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen NOTE: You should use the <option>-k</option> option and
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen with <option>-y</option> the shared secret is supplied as
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen a command line argument in clear text. This may be visible
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen in the output from
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <citerefentry>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <refentrytitle>ps</refentrytitle><manvolnum>1</manvolnum>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen </citerefentry>
e68309fcfa2eaa88217fd51e7b4900fc9c20ef5dTimo Sirainen or in a history file maintained by the user's shell.
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen </varlistentry>
ab6315aa0d5c83f4f1dc98b3715826a686aebffdTimo Sirainen </variablelist>
ab6315aa0d5c83f4f1dc98b3715826a686aebffdTimo Sirainen </refsection>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <refsection><info><title>QUERY OPTIONS</title></info>
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen provides a number of query options which affect
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen the way in which lookups are made and the results displayed. Some of
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen these set or reset flag bits in the query header, some determine which
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen sections of the answer get printed, and others determine the timeout
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen and retry strategies.
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen Each query option is identified by a keyword preceded by a plus sign
3cfff0ca01961d885bdbd6ef08d761880116af07Timo Sirainen (<literal>+</literal>). Some keywords set or reset an
ab6315aa0d5c83f4f1dc98b3715826a686aebffdTimo Sirainen option. These may be preceded
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen by the string <literal>no</literal> to negate the meaning of
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen that keyword. Other
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen keywords assign values to options like the timeout interval. They
313fe89df4d91cd0cd7f3558dc6d7fd21ad39eeeTimo Sirainen have the form <option>+keyword=value</option>.
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen Keywords may be abbreviated, provided the abbreviation is
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen unambiguous; for example, <literal>+cd</literal> is equivalent
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen The query options are:
96c253a039f102fa78a313ee05200ab3970112dcTimo Sirainen <variablelist>
a205d315b0978985ba77d871f44e4a98273612e6Timo Sirainen <varlistentry>
ab6315aa0d5c83f4f1dc98b3715826a686aebffdTimo Sirainen A synonym for <parameter>+[no]aaonly</parameter>.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen </varlistentry>
e.g. "[ key id = value ]".
accepted. Setting a named flag (e.g. DO) will silently be