📄 dig.1
字号:
\fB+[no]aaflag\fRA synonym for \fI+[no]aaonly\fR..TP\fB+[no]adflag\fRSet [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..TP\fB+[no]cdflag\fRSet [do not set] the CD (checking disabled) bit in the query. Thisrequests the server to not perform DNSSEC validation of responses..TP\fB+[no]cl\fRDisplay [do not display] the CLASS when printing the record..TP\fB+[no]ttlid\fRDisplay [do not display] the TTL when printing the record..TP\fB+[no]recurse\fRToggle the setting of the RD (recursion desired) bit in the query.This bit is set by default, which means \fBdig\fRnormally sends recursive queries. Recursion is automatically disabledwhen the \fI+nssearch\fR or\fI+trace\fR query options are used..TP\fB+[no]nssearch\fRWhen this option is set, \fBdig\fR 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..TP\fB+[no]trace\fRToggle tracing of the delegation path from the root name servers forthe name being looked up. Tracing is disabled by default. Whentracing is enabled, \fBdig\fR 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..TP\fB+[no]cmd\fRtoggles the printing of the initial comment in the output identifyingthe version of \fBdig\fR and the query options that havebeen applied. This comment is printed by default..TP\fB+[no]short\fRProvide a terse answer. The default is to print the answer in averbose form..TP\fB+[no]identify\fRShow [or do not show] the IP address and port number that supplied theanswer when the \fI+short\fR 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..TP\fB+[no]comments\fRToggle the display of comment lines in the output. The default is toprint comments..TP\fB+[no]stats\fRThis 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..TP\fB+[no]qr\fRPrint [do not print] the query as it is sent.By default, the query is not printed..TP\fB+[no]question\fRPrint [do not print] the question section of a query when an answer isreturned. The default is to print the question section as a comment..TP\fB+[no]answer\fRDisplay [do not display] the answer section of a reply. The defaultis to display it..TP\fB+[no]authority\fRDisplay [do not display] the authority section of a reply. Thedefault is to display it..TP\fB+[no]additional\fRDisplay [do not display] the additional section of a reply.The default is to display it..TP\fB+[no]all\fRSet or clear all display flags..TP\fB+time=T\fRSets the timeout for a query to\fIT\fR seconds. The default time out is 5 seconds.An attempt to set \fIT\fR to less than 1 will resultin a query timeout of 1 second being applied..TP\fB+tries=T\fRSets the number of times to try UDP queries to server to\fIT\fR instead of the default, 3. If\fIT\fR is less than or equal to zero, the number oftries is silently rounded up to 1..TP\fB+retry=T\fRSets the number of times to retry UDP queries to server to\fIT\fR instead of the default, 2. Unlike\fI+tries\fR, this does not include the initialquery..TP\fB+ndots=D\fRSet the number of dots that have to appear in\fIname\fR to \fID\fR for it to beconsidered absolute. The default value is that defined using thendots statement in \fI/etc/resolv.conf\fR, 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\fBsearch\fR or \fBdomain\fR directive in\fI/etc/resolv.conf\fR..TP\fB+bufsize=B\fRSet the UDP message buffer size advertised using EDNS0 to\fIB\fR bytes. The maximum and minimum sizes of thisbuffer are 65535 and 0 respectively. Values outside this range arerounded up or down appropriately..TP\fB+[no]multiline\fRPrint 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 \fBdig\fR output..TP\fB+[no]fail\fRDo 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..TP\fB+[no]besteffort\fRAttempt to display the contents of messages which are malformed.The default is to not display malformed answers..TP\fB+[no]dnssec\fRRequests DNSSEC records be sent by setting the DNSSEC OK bit (DO)in the OPT record in the additional section of the query..TP\fB+[no]sigchase\fRChase DNSSEC signature chains. Requires dig be compiled with-DDIG_SIGCHASE..TP\fB+trusted-key=####\fRSpecify a trusted key to be used with \fB+sigchase\fR.Requires dig be compiled with -DDIG_SIGCHASE..TP\fB+[no]topdown\fRWhen chasing DNSSEC signature chains perform a top down validation.Requires dig be compiled with -DDIG_SIGCHASE..SH "MULTIPLE QUERIES".PPThe BIND 9 implementation of \fBdig \fR supportsspecifying multiple queries on the command line (in addition tosupporting the \fB-f\fR batch file option). Each of thosequeries can be supplied with its own set of flags, options and queryoptions..PPIn this case, each \fIquery\fR 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..PPA 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 \fB+[no]cmd\fR option) can beoverridden by a query-specific set of query options. For example:.sp.nfdig +qr www.isc.org any -x 127.0.0.1 isc.org ns +noqr.sp.fishows how \fBdig\fR could be used from the command lineto make three lookups: an ANY query for www.isc.org, areverse lookup of 127.0.0.1 and a query for the NS records ofisc.org.A global query option of \fI+qr\fR is applied, sothat \fBdig\fR shows the initial query it made for eachlookup. The final query has a local query option of\fI+noqr\fR which means that \fBdig\fRwill not print the initial query when it looks up the NS records forisc.org..SH "FILES".PP\fI/etc/resolv.conf\fR.PP\fI${HOME}/.digrc\fR.SH "SEE ALSO".PP\fBhost\fR(1),\fBnamed\fR(8),\fBdnssec-keygen\fR(8),\fIRFC1035\fR..SH "BUGS".PPThere are probably too many query options.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -