man.delv.html revision 46472a450e043434d78fa18edc73bca8c47f3981
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri - Copyright (C) 2004-2015 Internet Systems Consortium, Inc. ("ISC")
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri - Copyright (C) 2000-2003 Internet Software Consortium.
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri - Permission to use, copy, modify, and/or distribute this software for any
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri - purpose with or without fee is hereby granted, provided that the above
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri - copyright notice and this permission notice appear in all copies.
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri - PERFORMANCE OF THIS SOFTWARE.
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
00a3eaf3896a33935e11fd5c5fb5c1714225c067Ramaswamy Tummala<link rel="home" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<link rel="up" href="Bv9ARM.ch13.html" title="Manual pages">
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<link rel="next" href="man.dnssec-checkds.html" title="dnssec-checkds">
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<td width="20%" align="right">�<a accesskey="n" href="man.dnssec-checkds.html">Next</a>
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<div class="cmdsynopsis"><p><code class="command">delv</code> [@server] [<code class="option">-4</code>] [<code class="option">-6</code>] [<code class="option">-a <em class="replaceable"><code>anchor-file</code></em></code>] [<code class="option">-b <em class="replaceable"><code>address</code></em></code>] [<code class="option">-c <em class="replaceable"><code>class</code></em></code>] [<code class="option">-d <em class="replaceable"><code>level</code></em></code>] [<code class="option">-i</code>] [<code class="option">-m</code>] [<code class="option">-p <em class="replaceable"><code>port#</code></em></code>] [<code class="option">-q <em class="replaceable"><code>name</code></em></code>] [<code class="option">-t <em class="replaceable"><code>type</code></em></code>] [<code class="option">-x <em class="replaceable"><code>addr</code></em></code>] [name] [type] [class] [queryopt...]</p></div>
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<div class="cmdsynopsis"><p><code class="command">delv</code> [<code class="option">-h</code>]</p></div>
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<div class="cmdsynopsis"><p><code class="command">delv</code> [<code class="option">-v</code>]</p></div>
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<div class="cmdsynopsis"><p><code class="command">delv</code> [queryopt...] [query...]</p></div>
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri (Domain Entity Lookup & Validation) is a tool for sending
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri DNS queries and validating the results, using the same internal
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri resolver and validator logic as <span class="command"><strong>named</strong></span>.
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri <span class="command"><strong>delv</strong></span> will send to a specified name server all
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri queries needed to fetch and validate the requested data; this
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri includes the original requested query, subsequent queries to follow
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri CNAME or DNAME chains, and queries for DNSKEY, DS and DLV records
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri to establish a chain of trust for DNSSEC validation.
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri It does not perform iterative resolution, but simulates the
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri behavior of a name server configured for DNSSEC validating and
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri forwarding.
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri By default, responses are validated using built-in DNSSEC trust
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri anchors for the root zone (".") and for the ISC DNSSEC lookaside
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri validation zone ("dlv.isc.org"). Records returned by
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri <span class="command"><strong>delv</strong></span> are either fully validated or
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri were not signed. If validation fails, an explanation of
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri the failure is included in the output; the validation process
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri can be traced in detail. Because <span class="command"><strong>delv</strong></span> does
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri not rely on an external server to carry out validation, it can
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri be used to check the validity of DNS responses in environments
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri where local name servers may not be trustworthy.
948cd88e57e92a578228791377c106422dec227eagiri Unless it is told to query a specific name server,
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri <span class="command"><strong>delv</strong></span> will try each of the servers listed in
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri <code class="filename">/etc/resolv.conf</code>. If no usable server
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri addresses are found, <span class="command"><strong>delv</strong></span> will send
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri queries to the localhost addresses (127.0.0.1 for IPv4, ::1
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri When no command line arguments or options are given,
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri <span class="command"><strong>delv</strong></span> will perform an NS query for "."
5763ba1e357fad1d57b5875c499307b7ea6e2cd4agiri (the root zone).
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri A typical invocation of <span class="command"><strong>delv</strong></span> looks like:
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<pre class="programlisting"> delv @server name type </pre>
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<dt><span class="term"><code class="constant">server</code></span></dt>
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri is the name or IP address of the name server to query. This
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri can be an IPv4 address in dotted-decimal notation or an IPv6
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri address in colon-delimited notation. When the supplied
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri <em class="parameter"><code>server</code></em> argument is a hostname,
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri <span class="command"><strong>delv</strong></span> resolves that name before
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri querying that name server (note, however, that this
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri initial lookup is <span class="emphasis"><em>not</em></span> validated
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri by DNSSEC).
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri If no <em class="parameter"><code>server</code></em> argument is
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri provided, <span class="command"><strong>delv</strong></span> consults
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri address is found there, it queries the name server at
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri that address. If either of the <code class="option">-4</code> or
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri <code class="option">-6</code> options are in use, then
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri only addresses for the corresponding transport
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri will be tried. If no usable addresses are found,
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri <span class="command"><strong>delv</strong></span> will send queries to
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri the localhost addresses (127.0.0.1 for IPv4,
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri ::1 for IPv6).
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<dt><span class="term"><code class="constant">name</code></span></dt>
948cd88e57e92a578228791377c106422dec227eagiri is the domain name to be looked up.
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<dt><span class="term"><code class="constant">type</code></span></dt>
948cd88e57e92a578228791377c106422dec227eagiri indicates what type of query is required —
948cd88e57e92a578228791377c106422dec227eagiri ANY, A, MX, etc.
948cd88e57e92a578228791377c106422dec227eagiri <em class="parameter"><code>type</code></em> can be any valid query
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri type. If no
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri <em class="parameter"><code>type</code></em> argument is supplied,
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri <span class="command"><strong>delv</strong></span> will perform a lookup for an
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<dt><span class="term">-a <em class="replaceable"><code>anchor-file</code></em></span></dt>
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri Specifies a file from which to read DNSSEC trust anchors.
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri The default is <code class="filename">/etc/bind.keys</code>, which
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri is included with <acronym class="acronym">BIND</acronym> 9 and contains
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri trust anchors for the root zone (".") and for the ISC
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri DNSSEC lookaside validation zone ("dlv.isc.org").
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri Keys that do not match the root or DLV trust-anchor
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri names are ignored; these key names can be overridden
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri Note: When reading the trust anchor file,
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri <span class="command"><strong>delv</strong></span> treats <code class="option">managed-keys</code>
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri statements and <code class="option">trusted-keys</code> statements
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri identically. That is, for a managed key, it is the
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri <span class="emphasis"><em>initial</em></span> key that is trusted; RFC 5011
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri key management is not supported. <span class="command"><strong>delv</strong></span>
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri will not consult the managed-keys database maintained by
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri <span class="command"><strong>named</strong></span>. This means that if either of the
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri keys in <code class="filename">/etc/bind.keys</code> is revoked
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri and rolled over, it will be necessary to update
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri <code class="filename">/etc/bind.keys</code> to use DNSSEC
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri validation in <span class="command"><strong>delv</strong></span>.
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<dt><span class="term">-b <em class="replaceable"><code>address</code></em></span></dt>
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri Sets the source IP address of the query to
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri <em class="parameter"><code>address</code></em>. This must be a valid address
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri on one of the host's network interfaces or "0.0.0.0" or "::".
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri An optional source port may be specified by appending
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri "#<port>"
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri Sets the query class for the requested data. Currently,
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri only class "IN" is supported in <span class="command"><strong>delv</strong></span>
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri and any other value is ignored.
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri<dt><span class="term">-d <em class="replaceable"><code>level</code></em></span></dt>
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri Set the systemwide debug level to <code class="option">level</code>.
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri The allowed range is from 0 to 99.
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri The default is 0 (no debugging).
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri Debugging traces from <span class="command"><strong>delv</strong></span> become
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri more verbose as the debug level increases.
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri See the <code class="option">+mtrace</code>, <code class="option">+rtrace</code>,
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri and <code class="option">+vtrace</code> options below for additional
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri debugging details.
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri Display the <span class="command"><strong>delv</strong></span> help usage output and exit.
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri Insecure mode. This disables internal DNSSEC validation.
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri (Note, however, this does not set the CD bit on upstream
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri queries. If the server being queried is performing DNSSEC
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri validation, then it will not return invalid data; this
b86efd96f8acd85ddaa930a2f0c1d664237e4aafagiri can cause <span class="command"><strong>delv</strong></span> to time out. When it
using nibble format under the IP6.ARPA domain.
e.g. "[ key id = value ]".
a trust anchor of "dlv.isc.org", for which there is a