"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.16.7/doc/man/mdig.1in" (4 Sep 2020, 12184 Bytes) of package /linux/misc/dns/bind9/9.16.7/bind-9.16.7.tar.xz:

As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "mdig.1in": 9.17.2_vs_9.17.3.

    1 .\" Man page generated from reStructuredText.
    2 .
    3 .TH "MDIG" "1" "@RELEASE_DATE@" "@BIND9_VERSION@" "BIND 9"
    4 .SH NAME
    5 mdig \- DNS pipelined lookup utility
    6 .
    7 .nr rst2man-indent-level 0
    8 .
    9 .de1 rstReportMargin
   10 \\$1 \\n[an-margin]
   11 level \\n[rst2man-indent-level]
   12 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
   13 -
   14 \\n[rst2man-indent0]
   15 \\n[rst2man-indent1]
   16 \\n[rst2man-indent2]
   17 ..
   18 .de1 INDENT
   19 .\" .rstReportMargin pre:
   20 . RS \\$1
   21 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
   22 . nr rst2man-indent-level +1
   23 .\" .rstReportMargin post:
   24 ..
   25 .de UNINDENT
   26 . RE
   27 .\" indent \\n[an-margin]
   28 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
   29 .nr rst2man-indent-level -1
   30 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
   31 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
   32 ..
   34 .sp
   35 \fBmdig\fP \fI\%{@server\fP} [\fB\-f\fP filename] [\fB\-h\fP] [\fB\-v\fP] [ [\fB\-4\fP] | [\fB\-6\fP] ] [\fB\-m\fP] [\fB\-b\fP address] [\fB\-p\fP port#] [\fB\-c\fP class] [\fB\-t\fP type] [\fB\-i\fP] [\fB\-x\fP addr] [plusopt...]
   36 .sp
   37 \fBmdig\fP {\fB\-h\fP}
   38 .sp
   39 \fBmdig\fP [@server] {global\-opt...} { {local\-opt...} {query} ...}
   41 .sp
   42 \fBmdig\fP is a multiple/pipelined query version of \fBdig\fP: instead of
   43 waiting for a response after sending each query, it begins by sending
   44 all queries. Responses are displayed in the order in which they are
   45 received, not in the order the corresponding queries were sent.
   46 .sp
   47 \fBmdig\fP options are a subset of the \fBdig\fP options, and are divided
   48 into "anywhere options" which can occur anywhere, "global options" which
   49 must occur before the query name (or they are ignored with a warning),
   50 and "local options" which apply to the next query on the command line.
   51 .sp
   52 The @server option is a mandatory global option. It is the name or IP
   53 address of the name server to query. (Unlike \fBdig\fP, this value is not
   54 retrieved from \fB/etc/resolv.conf\fP\&.) It can be an IPv4 address in
   55 dotted\-decimal notation, an IPv6 address in colon\-delimited notation, or
   56 a hostname. When the supplied \fBserver\fP argument is a hostname,
   57 \fBmdig\fP resolves that name before querying the name server.
   58 .sp
   59 \fBmdig\fP provides a number of query options which affect the way in
   60 which lookups are made and the results displayed. Some of these set or
   61 reset flag bits in the query header, some determine which sections of
   62 the answer get printed, and others determine the timeout and retry
   63 strategies.
   64 .sp
   65 Each query option is identified by a keyword preceded by a plus sign
   66 (\fB+\fP). Some keywords set or reset an option. These may be preceded by
   67 the string \fBno\fP to negate the meaning of that keyword. Other keywords
   68 assign values to options like the timeout interval. They have the form
   69 \fB+keyword=value\fP\&.
   71 .sp
   72 The \fB\-f\fP option makes \fBmdig\fP operate in batch mode by reading a list
   73 of lookup requests to process from the file \fBfilename\fP\&. The file
   74 contains a number of queries, one per line. Each entry in the file
   75 should be organized in the same way they would be presented as queries
   76 to \fBmdig\fP using the command\-line interface.
   77 .sp
   78 The \fB\-h\fP causes \fBmdig\fP to print the detailed help with the full list
   79 of options and exit.
   80 .sp
   81 The \fB\-v\fP causes \fBmdig\fP to print the version number and exit.
   83 .sp
   84 The \fB\-4\fP option forces \fBmdig\fP to only use IPv4 query transport.
   85 .sp
   86 The \fB\-6\fP option forces \fBmdig\fP to only use IPv6 query transport.
   87 .sp
   88 The \fB\-b\fP option sets the source IP address of the query to
   89 \fBaddress\fP\&. This must be a valid address on one of the host\(aqs network
   90 interfaces or "" or "::". An optional port may be specified by
   91 appending "#<port>"
   92 .sp
   93 The \fB\-m\fP option enables memory usage debugging.
   94 .sp
   95 The \fB\-p\fP option is used when a non\-standard port number is to be
   96 queried. \fBport#\fP is the port number that \fBmdig\fP will send its
   97 queries instead of the standard DNS port number 53. This option would be
   98 used to test a name server that has been configured to listen for
   99 queries on a non\-standard port number.
  100 .sp
  101 The global query options are:
  102 .INDENT 0.0
  103 .TP
  104 .B \fB+[no]additional\fP
  105 Display [do not display] the additional section of a reply. The
  106 default is to display it.
  107 .TP
  108 .B \fB+[no]all\fP
  109 Set or clear all display flags.
  110 .TP
  111 .B \fB+[no]answer\fP
  112 Display [do not display] the answer section of a reply. The default
  113 is to display it.
  114 .TP
  115 .B \fB+[no]authority\fP
  116 Display [do not display] the authority section of a reply. The
  117 default is to display it.
  118 .TP
  119 .B \fB+[no]besteffort\fP
  120 Attempt to display the contents of messages which are malformed. The
  121 default is to not display malformed answers.
  122 .TP
  123 .B \fB+[no]cl\fP
  124 Display [do not display] the CLASS when printing the record.
  125 .TP
  126 .B \fB+[no]comments\fP
  127 Toggle the display of comment lines in the output. The default is to
  128 print comments.
  129 .TP
  130 .B \fB+[no]continue\fP
  131 Continue on errors (e.g. timeouts).
  132 .TP
  133 .B \fB+[no]crypto\fP
  134 Toggle the display of cryptographic fields in DNSSEC records. The
  135 contents of these field are unnecessary to debug most DNSSEC
  136 validation failures and removing them makes it easier to see the
  137 common failures. The default is to display the fields. When omitted
  138 they are replaced by the string "[omitted]" or in the DNSKEY case the
  139 key id is displayed as the replacement, e.g. "[ key id = value ]".
  140 .TP
  141 .B \fB+dscp[=value]\fP
  142 Set the DSCP code point to be used when sending the query. Valid DSCP
  143 code points are in the range [0..63]. By default no code point is
  144 explicitly set.
  145 .TP
  146 .B \fB+[no]multiline\fP
  147 Print records like the SOA records in a verbose multi\-line format
  148 with human\-readable comments. The default is to print each record on
  149 a single line, to facilitate machine parsing of the \fBmdig\fP output.
  150 .TP
  151 .B \fB+[no]question\fP
  152 Print [do not print] the question section of a query when an answer
  153 is returned. The default is to print the question section as a
  154 comment.
  155 .TP
  156 .B \fB+[no]rrcomments\fP
  157 Toggle the display of per\-record comments in the output (for example,
  158 human\-readable key information about DNSKEY records). The default is
  159 not to print record comments unless multiline mode is active.
  160 .TP
  161 .B \fB+[no]short\fP
  162 Provide a terse answer. The default is to print the answer in a
  163 verbose form.
  164 .TP
  165 .B \fB+split=W\fP
  166 Split long hex\- or base64\-formatted fields in resource records into
  167 chunks of \fBW\fP characters (where \fBW\fP is rounded up to the nearest
  168 multiple of 4). \fB+nosplit\fP or \fB+split=0\fP causes fields not to be
  169 split at all. The default is 56 characters, or 44 characters when
  170 multiline mode is active.
  171 .TP
  172 .B \fB+[no]tcp\fP
  173 Use [do not use] TCP when querying name servers. The default behavior
  174 is to use UDP.
  175 .TP
  176 .B \fB+[no]ttlid\fP
  177 Display [do not display] the TTL when printing the record.
  178 .TP
  179 .B \fB+[no]ttlunits\fP
  180 Display [do not display] the TTL in friendly human\-readable time
  181 units of "s", "m", "h", "d", and "w", representing seconds, minutes,
  182 hours, days and weeks. Implies +ttlid.
  183 .TP
  184 .B \fB+[no]vc\fP
  185 Use [do not use] TCP when querying name servers. This alternate
  186 syntax to \fB+[no]tcp\fP is provided for backwards compatibility. The
  187 "vc" stands for "virtual circuit".
  190 .sp
  191 The \fB\-c\fP option sets the query class to \fBclass\fP\&. It can be any valid
  192 query class which is supported in BIND 9. The default query class is
  193 "IN".
  194 .sp
  195 The \fB\-t\fP option sets the query type to \fBtype\fP\&. It can be any valid
  196 query type which is supported in BIND 9. The default query type is "A",
  197 unless the \fB\-x\fP option is supplied to indicate a reverse lookup with
  198 the "PTR" query type.
  199 .sp
  200 Reverse lookups MDASH mapping addresses to names MDASH are simplified by
  201 the \fB\-x\fP option. \fBaddr\fP is an IPv4 address in dotted\-decimal
  202 notation, or a colon\-delimited IPv6 address. \fBmdig\fP automatically
  203 performs a lookup for a query name like \fB11.12.13.10.in\-addr.arpa\fP and
  204 sets the query type and class to PTR and IN respectively. By default,
  205 IPv6 addresses are looked up using nibble format under the IP6.ARPA
  206 domain.
  207 .sp
  208 The local query options are:
  209 .INDENT 0.0
  210 .TP
  211 .B \fB+[no]aaflag\fP
  212 A synonym for \fB+[no]aaonly\fP\&.
  213 .TP
  214 .B \fB+[no]aaonly\fP
  215 Sets the "aa" flag in the query.
  216 .TP
  217 .B \fB+[no]adflag\fP
  218 Set [do not set] the AD (authentic data) bit in the query. This
  219 requests the server to return whether all of the answer and authority
  220 sections have all been validated as secure according to the security
  221 policy of the server. AD=1 indicates that all records have been
  222 validated as secure and the answer is not from a OPT\-OUT range. AD=0
  223 indicate that some part of the answer was insecure or not validated.
  224 This bit is set by default.
  225 .TP
  226 .B \fB+bufsize=B\fP
  227 Set the UDP message buffer size advertised using EDNS0 to \fBB\fP
  228 bytes. The maximum and minimum sizes of this buffer are 65535 and 0
  229 respectively. Values outside this range are rounded up or down
  230 appropriately. Values other than zero will cause a EDNS query to be
  231 sent.
  232 .TP
  233 .B \fB+[no]cdflag\fP
  234 Set [do not set] the CD (checking disabled) bit in the query. This
  235 requests the server to not perform DNSSEC validation of responses.
  236 .TP
  237 .B \fB+[no]cookie=####\fP
  238 Send a COOKIE EDNS option, with optional value. Replaying a COOKIE
  239 from a previous response will allow the server to identify a previous
  240 client. The default is \fB+nocookie\fP\&.
  241 .TP
  242 .B \fB+[no]dnssec\fP
  243 Requests DNSSEC records be sent by setting the DNSSEC OK bit (DO) in
  244 the OPT record in the additional section of the query.
  245 .TP
  246 .B \fB+[no]edns[=#]\fP
  247 Specify the EDNS version to query with. Valid values are 0 to 255.
  248 Setting the EDNS version will cause a EDNS query to be sent.
  249 \fB+noedns\fP clears the remembered EDNS version. EDNS is set to 0 by
  250 default.
  251 .TP
  252 .B \fB+[no]ednsflags[=#]\fP
  253 Set the must\-be\-zero EDNS flags bits (Z bits) to the specified value.
  254 Decimal, hex and octal encodings are accepted. Setting a named flag
  255 (e.g. DO) will silently be ignored. By default, no Z bits are set.
  256 .TP
  257 .B \fB+[no]ednsopt[=code[:value]]\fP
  258 Specify EDNS option with code point \fBcode\fP and optionally payload
  259 of \fBvalue\fP as a hexadecimal string. \fB+noednsopt\fP clears the EDNS
  260 options to be sent.
  261 .TP
  262 .B \fB+[no]expire\fP
  263 Send an EDNS Expire option.
  264 .TP
  265 .B \fB+[no]nsid\fP
  266 Include an EDNS name server ID request when sending a query.
  267 .TP
  268 .B \fB+[no]recurse\fP
  269 Toggle the setting of the RD (recursion desired) bit in the query.
  270 This bit is set by default, which means \fBmdig\fP normally sends
  271 recursive queries.
  272 .TP
  273 .B \fB+retry=T\fP
  274 Sets the number of times to retry UDP queries to server to \fBT\fP
  275 instead of the default, 2. Unlike \fB+tries\fP, this does not include
  276 the initial query.
  277 .TP
  278 .B \fB+[no]subnet=addr[/prefix\-length]\fP
  279 Send (don\(aqt send) an EDNS Client Subnet option with the specified IP
  280 address or network prefix.
  281 .sp
  282 \fBmdig +subnet=\fP, or simply \fBmdig +subnet=0\fP for short,
  283 sends an EDNS client\-subnet option with an empty address and a source
  284 prefix\-length of zero, which signals a resolver that the client\(aqs
  285 address information must \fInot\fP be used when resolving this query.
  286 .TP
  287 .B \fB+timeout=T\fP
  288 Sets the timeout for a query to \fBT\fP seconds. The default timeout is
  289 5 seconds for UDP transport and 10 for TCP. An attempt to set \fBT\fP
  290 to less than 1 will result in a query timeout of 1 second being
  291 applied.
  292 .TP
  293 .B \fB+tries=T\fP
  294 Sets the number of times to try UDP queries to server to \fBT\fP
  295 instead of the default, 3. If \fBT\fP is less than or equal to zero,
  296 the number of tries is silently rounded up to 1.
  297 .TP
  298 .B \fB+udptimeout=T\fP
  299 Sets the timeout between UDP query retries.
  300 .TP
  301 .B \fB+[no]unknownformat\fP
  302 Print all RDATA in unknown RR type presentation format (\fI\%RFC 3597\fP).
  303 The default is to print RDATA for known types in the type\(aqs
  304 presentation format.
  305 .TP
  306 .B \fB+[no]yaml\fP
  307 Print the responses in a detailed YAML format.
  308 .TP
  309 .B \fB+[no]zflag\fP
  310 Set [do not set] the last unassigned DNS header flag in a DNS query.
  311 This flag is off by default.
  313 .SH SEE ALSO
  314 .sp
  315 \fBdig(1)\fP, \fI\%RFC 1035\fP\&.
  316 .SH AUTHOR
  317 Internet Systems Consortium
  319 2020, Internet Systems Consortium
  320 .\" Generated by docutils manpage writer.
  321 .