man.delv.html revision 164ade1482251e1da962b42e5bf0d3aa02a11e03
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - Copyright (C) 2000-2016 Internet Systems Consortium, Inc. ("ISC")
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - This Source Code Form is subject to the terms of the Mozilla Public
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - License, v. 2.0. If a copy of the MPL was not distributed with this
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin - file, You can obtain one at http://mozilla.org/MPL/2.0/.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<link rel="home" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<link rel="up" href="Bv9ARM.ch13.html" title="Manual pages">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<link rel="next" href="man.nslookup.html" title="nslookup">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<td width="20%" align="right">�<a accesskey="n" href="man.nslookup.html">Next</a>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin — DNS lookup and validation utility
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin [<code class="option">-a <em class="replaceable"><code>anchor-file</code></em></code>]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin [<code class="option">-b <em class="replaceable"><code>address</code></em></code>]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin [<code class="option">-c <em class="replaceable"><code>class</code></em></code>]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin [<code class="option">-d <em class="replaceable"><code>level</code></em></code>]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin [<code class="option">-p <em class="replaceable"><code>port#</code></em></code>]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin [<code class="option">-q <em class="replaceable"><code>name</code></em></code>]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin [<code class="option">-t <em class="replaceable"><code>type</code></em></code>]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin [<code class="option">-x <em class="replaceable"><code>addr</code></em></code>]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin [queryopt...]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin [queryopt...]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin [query...]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin (Domain Entity Lookup & Validation) is a tool for sending
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin DNS queries and validating the results, using the same internal
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin resolver and validator logic as <span class="command"><strong>named</strong></span>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span class="command"><strong>delv</strong></span> will send to a specified name server all
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin queries needed to fetch and validate the requested data; this
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin includes the original requested query, subsequent queries to follow
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin CNAME or DNAME chains, and queries for DNSKEY, DS and DLV records
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin to establish a chain of trust for DNSSEC validation.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin It does not perform iterative resolution, but simulates the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin behavior of a name server configured for DNSSEC validating and
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin forwarding.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin By default, responses are validated using built-in DNSSEC trust
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin anchors for the root zone (".") and for the ISC DNSSEC lookaside
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin validation zone ("dlv.isc.org"). Records returned by
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span class="command"><strong>delv</strong></span> are either fully validated or
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin were not signed. If validation fails, an explanation of
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin the failure is included in the output; the validation process
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin can be traced in detail. Because <span class="command"><strong>delv</strong></span> does
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin not rely on an external server to carry out validation, it can
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin be used to check the validity of DNS responses in environments
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin where local name servers may not be trustworthy.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Unless it is told to query a specific name server,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span class="command"><strong>delv</strong></span> will try each of the servers listed in
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <code class="filename">/etc/resolv.conf</code>. If no usable server
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin addresses are found, <span class="command"><strong>delv</strong></span> will send
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin queries to the localhost addresses (127.0.0.1 for IPv4, ::1
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin for IPv6).
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin When no command line arguments or options are given,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span class="command"><strong>delv</strong></span> will perform an NS query for "."
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin (the root zone).
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin A typical invocation of <span class="command"><strong>delv</strong></span> looks like:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<pre class="programlisting"> delv @server name type </pre>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term"><code class="constant">server</code></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin is the name or IP address of the name server to query. This
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin can be an IPv4 address in dotted-decimal notation or an IPv6
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin address in colon-delimited notation. When the supplied
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <em class="parameter"><code>server</code></em> argument is a hostname,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span class="command"><strong>delv</strong></span> resolves that name before
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin querying that name server (note, however, that this
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin initial lookup is <span class="emphasis"><em>not</em></span> validated
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin by DNSSEC).
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin If no <em class="parameter"><code>server</code></em> argument is
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin provided, <span class="command"><strong>delv</strong></span> consults
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin address is found there, it queries the name server at
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin that address. If either of the <code class="option">-4</code> or
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <code class="option">-6</code> options are in use, then
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin only addresses for the corresponding transport
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin will be tried. If no usable addresses are found,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span class="command"><strong>delv</strong></span> will send queries to
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin the localhost addresses (127.0.0.1 for IPv4,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin ::1 for IPv6).
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term"><code class="constant">name</code></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin is the domain name to be looked up.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term"><code class="constant">type</code></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin indicates what type of query is required —
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin ANY, A, MX, etc.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <em class="parameter"><code>type</code></em> can be any valid query
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin type. If no
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <em class="parameter"><code>type</code></em> argument is supplied,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span class="command"><strong>delv</strong></span> will perform a lookup for an
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term">-a <em class="replaceable"><code>anchor-file</code></em></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Specifies a file from which to read DNSSEC trust anchors.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin The default is <code class="filename">/etc/bind.keys</code>, which
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin is included with <acronym class="acronym">BIND</acronym> 9 and contains
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin trust anchors for the root zone (".") and for the ISC
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin DNSSEC lookaside validation zone ("dlv.isc.org").
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Keys that do not match the root or DLV trust-anchor
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin names are ignored; these key names can be overridden
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Note: When reading the trust anchor file,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span class="command"><strong>delv</strong></span> treats <code class="option">managed-keys</code>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin statements and <code class="option">trusted-keys</code> statements
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin identically. That is, for a managed key, it is the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span class="emphasis"><em>initial</em></span> key that is trusted; RFC 5011
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin key management is not supported. <span class="command"><strong>delv</strong></span>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin will not consult the managed-keys database maintained by
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <span class="command"><strong>named</strong></span>. This means that if either of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin keys in <code class="filename">/etc/bind.keys</code> is revoked
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin and rolled over, it will be necessary to update
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <code class="filename">/etc/bind.keys</code> to use DNSSEC
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin validation in <span class="command"><strong>delv</strong></span>.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term">-b <em class="replaceable"><code>address</code></em></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Sets the source IP address of the query to
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin <em class="parameter"><code>address</code></em>. This must be a valid address
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin on one of the host's network interfaces or "0.0.0.0" or "::".
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin An optional source port may be specified by appending
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin "#<port>"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin Sets the query class for the requested data. Currently,
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