📄 dig.docbook
字号:
</para></listitem></varlistentry><varlistentry><term><option>+[no]search</option></term><listitem><para>Use [do not use] the search list defined by the searchlist or domaindirective in <filename>resolv.conf</filename> (if any).The search list is not used by default.</para></listitem></varlistentry><varlistentry><term><option>+[no]defname</option></term><listitem><para>Deprecated, treated as a synonym for <parameter>+[no]search</parameter></para></listitem></varlistentry><varlistentry><term><option>+[no]aaonly</option></term><listitem><para>This option does nothing. It is provided for compatibility with oldversions of <command>dig</command> where it set an unimplementedresolver flag.</para></listitem></varlistentry><varlistentry><term><option>+[no]adflag</option></term><listitem><para>Set [do not set] the AD (authentic data) bit in the query. The AD bitcurrently has a standard meaning only in responses, not in queries,but the ability to set the bit in the query is provided forcompleteness.</para></listitem></varlistentry><varlistentry><term><option>+[no]cdflag</option></term><listitem><para>Set [do not set] the CD (checking disabled) bit in the query. Thisrequests the server to not perform DNSSEC validation of responses.</para></listitem></varlistentry><varlistentry><term><option>+[no]recurse</option></term><listitem><para>Toggle the setting of the RD (recursion desired) bit in the query.This bit is set by default, which means <command>dig</command>normally sends recursive queries. Recursion is automatically disabledwhen the <parameter>+nssearch</parameter> or<parameter>+trace</parameter> query options are used.</para></listitem></varlistentry><varlistentry><term><option>+[no]nssearch</option></term><listitem><para>When this option is set, <command>dig</command> attempts to find theauthoritative name servers for the zone containing the name beinglooked up and display the SOA record that each name server has for thezone.</para></listitem></varlistentry><varlistentry><term><option>+[no]trace</option></term><listitem><para>Toggle tracing of the delegation path from the root name servers forthe name being looked up. Tracing is disabled by default. Whentracing is enabled, <command>dig</command> makes iterative queries toresolve the name being looked up. It will follow referrals from theroot servers, showing the answer from each server that was used toresolve the lookup.</para></listitem></varlistentry><varlistentry><term><option>+[no]cmd</option></term><listitem><para>toggles the printing of the initial comment in the output identifyingthe version of <command>dig</command> and the query options that havebeen applied. This comment is printed by default.</para></listitem></varlistentry><varlistentry><term><option>+[no]short</option></term><listitem><para>Provide a terse answer. The default is to print the answer in averbose form.</para></listitem></varlistentry><varlistentry><term><option>+[no]identify</option></term><listitem><para>Show [or do not show] the IP address and port number that supplied theanswer when the <parameter>+short</parameter> option is enabled. Ifshort form answers are requested, the default is not to show thesource address and port number of the server that provided the answer.</para></listitem></varlistentry><varlistentry><term><option>+[no]comments</option></term><listitem><para>Toggle the display of comment lines in the output. The default is toprint comments.</para></listitem></varlistentry><varlistentry><term><option>+[no]stats</option></term><listitem><para>This query option toggles the printing of statistics: when the querywas made, the size of the reply and so on. The default behaviour isto print the query statistics.</para></listitem></varlistentry><varlistentry><term><option>+[no]qr</option></term><listitem><para>Print [do not print] the query as it is sent.By default, the query is not printed.</para></listitem></varlistentry><varlistentry><term><option>+[no]question</option></term><listitem><para>Print [do not print] the question section of a query when an answer isreturned. The default is to print the question section as a comment.</para></listitem></varlistentry><varlistentry><term><option>+[no]answer</option></term><listitem><para>Display [do not display] the answer section of a reply. The defaultis to display it.</para></listitem></varlistentry><varlistentry><term><option>+[no]authority</option></term><listitem><para>Display [do not display] the authority section of a reply. Thedefault 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 resultin 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 retry 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 ofretries is silently rounded up to 1.</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 beconsidered absolute. The default value is that defined using thendots statement in <filename>/etc/resolv.conf</filename>, or 1 if nondots statement is present. Names with fewer dots are interpreted asrelative 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 thisbuffer are 65535 and 0 respectively. Values outside this range arerounded up or down appropriately.</para></listitem></varlistentry><varlistentry><term><option>+[no]multiline</option></term><listitem><para>Print records like the SOA records in a verbose multi-lineformat with human-readable comments. The default is to printeach 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 isto not try the next server which is the reverse of normal stub resolverbehaviour.</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></variablelist></para></refsect1><refsect1><title>MULTIPLE QUERIES</title><para>The BIND 9 implementation of <command>dig </command> supportsspecifying multiple queries on the command line (in addition tosupporting the <option>-f</option> batch file option). Each of thosequeries can be supplied with its own set of flags, options and queryoptions.</para><para>In this case, each <parameter>query</parameter> argument represent anindividual query in the command-line syntax described above. Eachconsists of any of the standard options and flags, the name to belooked up, an optional query type and class and any query options thatshould 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 thefirst tuple of name, class, type, options, flags, and query optionssupplied on the command line. Any global query options (exceptthe <option>+[no]cmd</option> option) can beoverridden 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 lineto make three lookups: an ANY query for <literal>www.isc.org</literal>, areverse 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, sothat <command>dig</command> shows the initial query it made for eachlookup. 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>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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -