dig.1

来自「非常好的dns解析软件」· 1 代码 · 共 558 行 · 第 1/2 页

1
558
字号
\fB+[no]aaflag\fR.RS 4A synonym for\fI+[no]aaonly\fR..RE.PP\fB+[no]adflag\fR.RS 4Set [do not set] the AD (authentic data) bit in the query. The AD bit currently has a standard meaning only in responses, not in queries, but the ability to set the bit in the query is provided for completeness..RE.PP\fB+[no]cdflag\fR.RS 4Set [do not set] the CD (checking disabled) bit in the query. This requests the server to not perform DNSSEC validation of responses..RE.PP\fB+[no]cl\fR.RS 4Display [do not display] the CLASS when printing the record..RE.PP\fB+[no]ttlid\fR.RS 4Display [do not display] the TTL when printing the record..RE.PP\fB+[no]recurse\fR.RS 4Toggle 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 disabled when the\fI+nssearch\fRor\fI+trace\fRquery options are used..RE.PP\fB+[no]nssearch\fR.RS 4When this option is set,\fBdig\fRattempts to find the authoritative name servers for the zone containing the name being looked up and display the SOA record that each name server has for the zone..RE.PP\fB+[no]trace\fR.RS 4Toggle tracing of the delegation path from the root name servers for the name being looked up. Tracing is disabled by default. When tracing is enabled,\fBdig\fRmakes iterative queries to resolve the name being looked up. It will follow referrals from the root servers, showing the answer from each server that was used to resolve the lookup..RE.PP\fB+[no]cmd\fR.RS 4toggles the printing of the initial comment in the output identifying the version of\fBdig\fRand the query options that have been applied. This comment is printed by default..RE.PP\fB+[no]short\fR.RS 4Provide a terse answer. The default is to print the answer in a verbose form..RE.PP\fB+[no]identify\fR.RS 4Show [or do not show] the IP address and port number that supplied the answer when the\fI+short\fRoption is enabled. If short form answers are requested, the default is not to show the source address and port number of the server that provided the answer..RE.PP\fB+[no]comments\fR.RS 4Toggle the display of comment lines in the output. The default is to print comments..RE.PP\fB+[no]stats\fR.RS 4This query option toggles the printing of statistics: when the query was made, the size of the reply and so on. The default behaviour is to print the query statistics..RE.PP\fB+[no]qr\fR.RS 4Print [do not print] the query as it is sent. By default, the query is not printed..RE.PP\fB+[no]question\fR.RS 4Print [do not print] the question section of a query when an answer is returned. The default is to print the question section as a comment..RE.PP\fB+[no]answer\fR.RS 4Display [do not display] the answer section of a reply. The default is to display it..RE.PP\fB+[no]authority\fR.RS 4Display [do not display] the authority section of a reply. The default is to display it..RE.PP\fB+[no]additional\fR.RS 4Display [do not display] the additional section of a reply. The default is to display it..RE.PP\fB+[no]all\fR.RS 4Set or clear all display flags..RE.PP\fB+time=T\fR.RS 4Sets the timeout for a query to\fIT\fRseconds. The default time out is 5 seconds. An attempt to set\fIT\fRto less than 1 will result in a query timeout of 1 second being applied..RE.PP\fB+tries=T\fR.RS 4Sets the number of times to try UDP queries to server to\fIT\fRinstead of the default, 3. If\fIT\fRis less than or equal to zero, the number of tries is silently rounded up to 1..RE.PP\fB+retry=T\fR.RS 4Sets the number of times to retry UDP queries to server to\fIT\fRinstead of the default, 2. Unlike\fI+tries\fR, this does not include the initial query..RE.PP\fB+ndots=D\fR.RS 4Set the number of dots that have to appear in\fIname\fRto\fID\fRfor it to be considered absolute. The default value is that defined using the ndots statement in\fI/etc/resolv.conf\fR, 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\fBsearch\fRor\fBdomain\fRdirective in\fI/etc/resolv.conf\fR..RE.PP\fB+bufsize=B\fR.RS 4Set the UDP message buffer size advertised using EDNS0 to\fIB\fRbytes. 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..RE.PP\fB+edns=#\fR.RS 4Specify the EDNS version to query with. Valid values are 0 to 255. Setting the EDNS version will cause a EDNS query to be sent.\fB+noedns\fRclears the remembered EDNS version..RE.PP\fB+[no]multiline\fR.RS 4Print 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\fBdig\fRoutput..RE.PP\fB+[no]fail\fR.RS 4Do 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..RE.PP\fB+[no]besteffort\fR.RS 4Attempt to display the contents of messages which are malformed. The default is to not display malformed answers..RE.PP\fB+[no]dnssec\fR.RS 4Requests DNSSEC records be sent by setting the DNSSEC OK bit (DO) in the OPT record in the additional section of the query..RE.PP\fB+[no]sigchase\fR.RS 4Chase DNSSEC signature chains. Requires dig be compiled with \-DDIG_SIGCHASE..RE.PP\fB+trusted\-key=####\fR.RS 4Specifies a file containing trusted keys to be used with\fB+sigchase\fR. Each DNSKEY record must be on its own line..spIf not specified\fBdig\fRwill look for\fI/etc/trusted\-key.key\fRthen\fItrusted\-key.key\fRin the current directory..spRequires dig be compiled with \-DDIG_SIGCHASE..RE.PP\fB+[no]topdown\fR.RS 4When chasing DNSSEC signature chains perform a top down validation. Requires dig be compiled with \-DDIG_SIGCHASE..RE.SH "MULTIPLE QUERIES".PPThe BIND 9 implementation of\fBdig \fRsupports specifying multiple queries on the command line (in addition to supporting the\fB\-f\fRbatch file option). Each of those queries can be supplied with its own set of flags, options and query options..PPIn this case, each\fIquery\fRargument 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..PPA 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\fB+[no]cmd\fRoption) can be overridden by a query\-specific set of query options. For example:.sp.RS 4.nfdig +qr www.isc.org any \-x 127.0.0.1 isc.org ns +noqr.fi.RE.spshows how\fBdig\fRcould be used from the command line to make three lookups: an ANY query forwww.isc.org, a reverse lookup of 127.0.0.1 and a query for the NS records ofisc.org. A global query option of\fI+qr\fRis applied, so that\fBdig\fRshows the initial query it made for each lookup. The final query has a local query option of\fI+noqr\fRwhich means that\fBdig\fRwill not print the initial query when it looks up the NS records forisc.org..SH "IDN SUPPORT".PPIf\fBdig\fRhas been built with IDN (internationalized domain name) support, it can accept and display non\-ASCII domain names.\fBdig\fRappropriately 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\fBIDN_DISABLE\fRenvironment variable. The IDN support is disabled if the variable is set when\fBdig\fRruns..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),RFC1035..SH "BUGS".PPThere are probably too many query options..SH "COPYRIGHT"Copyright \(co 2004\-2007 Internet Systems Consortium, Inc. ("ISC").brCopyright \(co 2000\-2003 Internet Software Consortium..br

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?