dnssec-dsfromkey.html revision e839bf134fb138920d4833cf05cb8b8906787a8d
795a316ec568b2470aab18b9481443966047652eAutomatic Updater - Copyright (C) 2008-2011 Internet Systems Consortium, Inc. ("ISC")
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updater - Permission to use, copy, modify, and/or distribute this software for any
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - purpose with or without fee is hereby granted, provided that the above
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - copyright notice and this permission notice appear in all copies.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews - PERFORMANCE OF THIS SOFTWARE.
e839bf134fb138920d4833cf05cb8b8906787a8dAutomatic Updater<!-- $Id: dnssec-dsfromkey.html,v 1.15 2011/10/26 01:14:50 tbox Exp $ -->
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updater<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<a name="man.dnssec-dsfromkey"></a><div class="titlepage"></div>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<p><span class="application">dnssec-dsfromkey</span> — DNSSEC DS RR generation tool</p>
e839bf134fb138920d4833cf05cb8b8906787a8dAutomatic Updater<div class="cmdsynopsis"><p><code class="command">dnssec-dsfromkey</code> [<code class="option">-v <em class="replaceable"><code>level</code></em></code>] [<code class="option">-1</code>] [<code class="option">-2</code>] [<code class="option">-a <em class="replaceable"><code>alg</code></em></code>] [<code class="option">-l <em class="replaceable"><code>domain</code></em></code>] [<code class="option">-T <em class="replaceable"><code>TTL</code></em></code>] {keyfile}</p></div>
e839bf134fb138920d4833cf05cb8b8906787a8dAutomatic Updater<div class="cmdsynopsis"><p><code class="command">dnssec-dsfromkey</code> {-s} [<code class="option">-1</code>] [<code class="option">-2</code>] [<code class="option">-a <em class="replaceable"><code>alg</code></em></code>] [<code class="option">-K <em class="replaceable"><code>directory</code></em></code>] [<code class="option">-l <em class="replaceable"><code>domain</code></em></code>] [<code class="option">-s</code>] [<code class="option">-c <em class="replaceable"><code>class</code></em></code>] [<code class="option">-T <em class="replaceable"><code>TTL</code></em></code>] [<code class="option">-f <em class="replaceable"><code>file</code></em></code>] [<code class="option">-A</code>] [<code class="option">-v <em class="replaceable"><code>level</code></em></code>] {dnsname}</p></div>
e839bf134fb138920d4833cf05cb8b8906787a8dAutomatic Updater<a name="id2543484"></a><h2>DESCRIPTION</h2>
922312472e2e05ebc64993d465999c5351b83036Automatic Updater<p><span><strong class="command">dnssec-dsfromkey</strong></span>
b27ce68bae92006e2ad7a9b75602c6385e529c3bAutomatic Updater outputs the Delegation Signer (DS) resource record (RR), as defined in
922312472e2e05ebc64993d465999c5351b83036Automatic Updater RFC 3658 and RFC 4509, for the given key(s).
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews Use SHA-1 as the digest algorithm (the default is to use
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews both SHA-1 and SHA-256).
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews Use SHA-256 as the digest algorithm.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<dt><span class="term">-a <em class="replaceable"><code>algorithm</code></em></span></dt>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews Select the digest algorithm. The value of
0e9e255d1643375056aa9ed7fe2a279713ffae78Automatic Updater <code class="option">algorithm</code> must be one of SHA-1 (SHA1),
0e9e255d1643375056aa9ed7fe2a279713ffae78Automatic Updater SHA-256 (SHA256) or GOST. These values are case insensitive.
e839bf134fb138920d4833cf05cb8b8906787a8dAutomatic Updater<dt><span class="term">-T <em class="replaceable"><code>TTL</code></em></span></dt>
e839bf134fb138920d4833cf05cb8b8906787a8dAutomatic Updater Specifies the TTL of the DS records.
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<dt><span class="term">-K <em class="replaceable"><code>directory</code></em></span></dt>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater Look for key files (or, in keyset mode,
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater <code class="filename">keyset-</code> files) in
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<dt><span class="term">-f <em class="replaceable"><code>file</code></em></span></dt>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater Zone file mode: in place of the keyfile name, the argument is
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater the DNS domain name of a zone master file, which can be read
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater from <code class="option">file</code>. If the zone name is the same as
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater <code class="option">file</code>, then it may be omitted.
795a316ec568b2470aab18b9481443966047652eAutomatic Updater If <code class="option">file</code> is set to <code class="literal">"-"</code>, then
795a316ec568b2470aab18b9481443966047652eAutomatic Updater the zone data is read from the standard input. This makes it
795a316ec568b2470aab18b9481443966047652eAutomatic Updater possible to use the output of the <span><strong class="command">dig</strong></span>
795a316ec568b2470aab18b9481443966047652eAutomatic Updater command as input, as in:
795a316ec568b2470aab18b9481443966047652eAutomatic Updater <strong class="userinput"><code>dig dnskey example.com | dnssec-dsfromkey -f - example.com</code></strong>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater Include ZSK's when generating DS records. Without this option,
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater only keys which have the KSK flag set will be converted to DS
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater records and printed. Useful only in zone file mode.
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt<dt><span class="term">-l <em class="replaceable"><code>domain</code></em></span></dt>
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt Generate a DLV set instead of a DS set. The specified
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt <code class="option">domain</code> is appended to the name for each
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt record in the set.
163af735c2082a024167be111d27bd5b5ff4f462Automatic Updater The DNSSEC Lookaside Validation (DLV) RR is described
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews Keyset mode: in place of the keyfile name, the argument is
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater the DNS domain name of a keyset file.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater Specifies the DNS class (default is IN). Useful only
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater in keyset or zone file mode.
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<dt><span class="term">-v <em class="replaceable"><code>level</code></em></span></dt>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater Sets the debugging level.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews To build the SHA-256 DS RR from the
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <strong class="userinput"><code>Kexample.com.+003+26160</code></strong>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews keyfile name, the following command would be issued:
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<p><strong class="userinput"><code>dnssec-dsfromkey -2 Kexample.com.+003+26160</code></strong>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews The command would print something like:
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<p><strong class="userinput"><code>example.com. IN DS 26160 5 2 3A1EADA7A74B8D0BA86726B0C227AA85AB8BBD2B2004F41A868A54F0 C5EA0B94</code></strong>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews The keyfile can be designed by the key identification
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <code class="filename">Knnnn.+aaa+iiiii</code> or the full file name
b27ce68bae92006e2ad7a9b75602c6385e529c3bAutomatic Updater <code class="filename">Knnnn.+aaa+iiiii.key</code> as generated by
922312472e2e05ebc64993d465999c5351b83036Automatic Updater <span class="refentrytitle">dnssec-keygen</span>(8).
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews The keyset file name is built from the <code class="option">directory</code>,
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews the string <code class="filename">keyset-</code> and the
922312472e2e05ebc64993d465999c5351b83036Automatic Updater A keyfile error can give a "file not found" even if the file exists.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<p><span class="citerefentry"><span class="refentrytitle">dnssec-keygen</span>(8)</span>,
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <span class="citerefentry"><span class="refentrytitle">dnssec-signzone</span>(8)</span>,
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <em class="citetitle">BIND 9 Administrator Reference Manual</em>,
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<p><span class="corpauthor">Internet Systems Consortium</span>