📄 dig.docbook
字号:
</listitem> </varlistentry> <varlistentry> <term><option>+[no]authority</option></term> <listitem> <para> Display [do not display] the authority section of a reply. The default is to display it. </para> </listitem> </varlistentry> <varlistentry> <term><option>+[no]additional</option></term> <listitem> <para> Display [do not display] the additional section of a reply. The default is to display it. </para> </listitem> </varlistentry> <varlistentry> <term><option>+[no]all</option></term> <listitem> <para> Set or clear all display flags. </para> </listitem> </varlistentry> <varlistentry> <term><option>+time=T</option></term> <listitem> <para> Sets the timeout for a query to <parameter>T</parameter> seconds. The default time out is 5 seconds. An attempt to set <parameter>T</parameter> to less than 1 will result in a query timeout of 1 second being applied. </para> </listitem> </varlistentry> <varlistentry> <term><option>+tries=T</option></term> <listitem> <para> Sets the number of times to try UDP queries to server to <parameter>T</parameter> instead of the default, 3. If <parameter>T</parameter> is less than or equal to zero, the number of tries is silently rounded up to 1. </para> </listitem> </varlistentry> <varlistentry> <term><option>+retry=T</option></term> <listitem> <para> Sets the number of times to retry UDP queries to server to <parameter>T</parameter> instead of the default, 2. Unlike <parameter>+tries</parameter>, this does not include the initial query. </para> </listitem> </varlistentry> <varlistentry> <term><option>+ndots=D</option></term> <listitem> <para> Set the number of dots that have to appear in <parameter>name</parameter> to <parameter>D</parameter> for it to be considered absolute. The default value is that defined using the ndots statement in <filename>/etc/resolv.conf</filename>, or 1 if no ndots statement is present. Names with fewer dots are interpreted as relative names and will be searched for in the domains listed in the <option>search</option> or <option>domain</option> directive in <filename>/etc/resolv.conf</filename>. </para> </listitem> </varlistentry> <varlistentry> <term><option>+bufsize=B</option></term> <listitem> <para> Set the UDP message buffer size advertised using EDNS0 to <parameter>B</parameter> bytes. The maximum and minimum sizes of this buffer are 65535 and 0 respectively. Values outside this range are rounded up or down appropriately. Values other than zero will cause a EDNS query to be sent. </para> </listitem> </varlistentry> <varlistentry> <term><option>+edns=#</option></term> <listitem> <para> Specify the EDNS version to query with. Valid values are 0 to 255. Setting the EDNS version will cause a EDNS query to be sent. <option>+noedns</option> clears the remembered EDNS version. </para> </listitem> </varlistentry> <varlistentry> <term><option>+[no]multiline</option></term> <listitem> <para> Print records like the SOA records in a verbose multi-line format with human-readable comments. The default is to print each record on a single line, to facilitate machine parsing of the <command>dig</command> output. </para> </listitem> </varlistentry> <varlistentry> <term><option>+[no]fail</option></term> <listitem> <para> Do not try the next server if you receive a SERVFAIL. The default is to not try the next server which is the reverse of normal stub resolver behaviour. </para> </listitem> </varlistentry> <varlistentry> <term><option>+[no]besteffort</option></term> <listitem> <para> Attempt to display the contents of messages which are malformed. The default is to not display malformed answers. </para> </listitem> </varlistentry> <varlistentry> <term><option>+[no]dnssec</option></term> <listitem> <para> Requests DNSSEC records be sent by setting the DNSSEC OK bit (DO) in the OPT record in the additional section of the query. </para> </listitem> </varlistentry> <varlistentry> <term><option>+[no]sigchase</option></term> <listitem> <para> Chase DNSSEC signature chains. Requires dig be compiled with -DDIG_SIGCHASE. </para> </listitem> </varlistentry> <varlistentry> <term><option>+trusted-key=####</option></term> <listitem> <para> Specifies a file containing trusted keys to be used with <option>+sigchase</option>. Each DNSKEY record must be on its own line. </para> <para> If not specified <command>dig</command> will look for <filename>/etc/trusted-key.key</filename> then <filename>trusted-key.key</filename> in the current directory. </para> <para> Requires dig be compiled with -DDIG_SIGCHASE. </para> </listitem> </varlistentry> <varlistentry> <term><option>+[no]topdown</option></term> <listitem> <para> When chasing DNSSEC signature chains perform a top down validation. Requires dig be compiled with -DDIG_SIGCHASE. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1> <title>MULTIPLE QUERIES</title> <para> The BIND 9 implementation of <command>dig </command> supports specifying multiple queries on the command line (in addition to supporting the <option>-f</option> batch file option). Each of those queries can be supplied with its own set of flags, options and query options. </para> <para> In this case, each <parameter>query</parameter> argument represent an individual query in the command-line syntax described above. Each consists of any of the standard options and flags, the name to be looked up, an optional query type and class and any query options that should be applied to that query. </para> <para> A global set of query options, which should be applied to all queries, can also be supplied. These global query options must precede the first tuple of name, class, type, options, flags, and query options supplied on the command line. Any global query options (except the <option>+[no]cmd</option> option) can be overridden by a query-specific set of query options. For example: <programlisting>dig +qr www.isc.org any -x 127.0.0.1 isc.org ns +noqr</programlisting> shows how <command>dig</command> could be used from the command line to make three lookups: an ANY query for <literal>www.isc.org</literal>, a reverse lookup of 127.0.0.1 and a query for the NS records of <literal>isc.org</literal>. A global query option of <parameter>+qr</parameter> is applied, so that <command>dig</command> shows the initial query it made for each lookup. The final query has a local query option of <parameter>+noqr</parameter> which means that <command>dig</command> will not print the initial query when it looks up the NS records for <literal>isc.org</literal>. </para> </refsect1> <refsect1> <title>IDN SUPPORT</title> <para> If <command>dig</command> has been built with IDN (internationalized domain name) support, it can accept and display non-ASCII domain names. <command>dig</command> appropriately converts character encoding of domain name before sending a request to DNS server or displaying a reply from the server. If you'd like to turn off the IDN support for some reason, defines the <envar>IDN_DISABLE</envar> environment variable. The IDN support is disabled if the variable is set when <command>dig</command> runs. </para> </refsect1> <refsect1> <title>FILES</title> <para><filename>/etc/resolv.conf</filename> </para> <para><filename>${HOME}/.digrc</filename> </para> </refsect1> <refsect1> <title>SEE ALSO</title> <para><citerefentry> <refentrytitle>host</refentrytitle><manvolnum>1</manvolnum> </citerefentry>, <citerefentry> <refentrytitle>named</refentrytitle><manvolnum>8</manvolnum> </citerefentry>, <citerefentry> <refentrytitle>dnssec-keygen</refentrytitle><manvolnum>8</manvolnum> </citerefentry>, <citetitle>RFC1035</citetitle>. </para> </refsect1> <refsect1> <title>BUGS</title> <para> There are probably too many query options. </para> </refsect1></refentry><!-- - Local variables: - mode: sgml - End:-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -