dnssec-dsfromkey.html revision 0e9e255d1643375056aa9ed7fe2a279713ffae78
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<!--
795a316ec568b2470aab18b9481443966047652eAutomatic Updater - Copyright (C) 2008-2010 Internet Systems Consortium, Inc. ("ISC")
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater -
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.
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater -
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.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews-->
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User<!-- $Id: dnssec-dsfromkey.html,v 1.13 2010/12/24 01:14:19 tbox Exp $ -->
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<html>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<head>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<title>dnssec-dsfromkey</title>
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updater<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</head>
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<div class="refnamediv">
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<h2>Name</h2>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<p><span class="application">dnssec-dsfromkey</span> &#8212; DNSSEC DS RR generation tool</p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</div>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<div class="refsynopsisdiv">
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<h2>Synopsis</h2>
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>] {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">-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>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</div>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<div class="refsect1" lang="en">
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User<a name="id2543464"></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 </p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</div>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<div class="refsect1" lang="en">
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User<a name="id2543476"></a><h2>OPTIONS</h2>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<div class="variablelist"><dl>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<dt><span class="term">-1</span></dt>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<dd><p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews Use SHA-1 as the digest algorithm (the default is to use
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews both SHA-1 and SHA-256).
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </p></dd>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<dt><span class="term">-2</span></dt>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<dd><p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews Use SHA-256 as the digest algorithm.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </p></dd>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<dt><span class="term">-a <em class="replaceable"><code>algorithm</code></em></span></dt>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<dd><p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews Select the digest algorithm. The value of
0e9e255d1643375056aa9ed7fe2a279713ffae78Automatic Updater <code class="option">algorithm</code> must be one of SHA-1 (SHA1),
aaaf8d4f4873d21e55c3ffb4f656203d08339865Mark Andrews SHA-256 (SHA256) or GOST. These values are case insensitive.
aaaf8d4f4873d21e55c3ffb4f656203d08339865Mark Andrews </p></dd>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<dt><span class="term">-K <em class="replaceable"><code>directory</code></em></span></dt>
e839bf134fb138920d4833cf05cb8b8906787a8dAutomatic Updater<dd><p>
e839bf134fb138920d4833cf05cb8b8906787a8dAutomatic Updater Look for key files (or, in keyset mode,
e839bf134fb138920d4833cf05cb8b8906787a8dAutomatic Updater <code class="filename">keyset-</code> files) in
e839bf134fb138920d4833cf05cb8b8906787a8dAutomatic Updater <code class="option">directory</code>.
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater </p></dd>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<dt><span class="term">-f <em class="replaceable"><code>file</code></em></span></dt>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<dd><p>
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 </p></dd>
795a316ec568b2470aab18b9481443966047652eAutomatic Updater<dt><span class="term">-A</span></dt>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<dd><p>
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.
795a316ec568b2470aab18b9481443966047652eAutomatic Updater </p></dd>
795a316ec568b2470aab18b9481443966047652eAutomatic Updater<dt><span class="term">-l <em class="replaceable"><code>domain</code></em></span></dt>
795a316ec568b2470aab18b9481443966047652eAutomatic Updater<dd><p>
795a316ec568b2470aab18b9481443966047652eAutomatic Updater Generate a DLV set instead of a DS set. The specified
795a316ec568b2470aab18b9481443966047652eAutomatic Updater <code class="option">domain</code> is appended to the name for each
795a316ec568b2470aab18b9481443966047652eAutomatic Updater record in the set.
795a316ec568b2470aab18b9481443966047652eAutomatic Updater The DNSSEC Lookaside Validation (DLV) RR is described
795a316ec568b2470aab18b9481443966047652eAutomatic Updater in RFC 4431.
795a316ec568b2470aab18b9481443966047652eAutomatic Updater </p></dd>
795a316ec568b2470aab18b9481443966047652eAutomatic Updater<dt><span class="term">-s</span></dt>
795a316ec568b2470aab18b9481443966047652eAutomatic Updater<dd><p>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater Keyset mode: in place of the keyfile name, the argument is
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater the DNS domain name of a keyset file.
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater </p></dd>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<dd><p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews Specifies the DNS class (default is IN). Useful only
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt in keyset or zone file mode.
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt </p></dd>
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt<dt><span class="term">-v <em class="replaceable"><code>level</code></em></span></dt>
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt<dd><p>
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt Sets the debugging level.
163af735c2082a024167be111d27bd5b5ff4f462Automatic Updater </p></dd>
163af735c2082a024167be111d27bd5b5ff4f462Automatic Updater</dl></div>
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt</div>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<div class="refsect1" lang="en">
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<a name="id2543662"></a><h2>EXAMPLE</h2>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<p>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater 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>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<p><strong class="userinput"><code>dnssec-dsfromkey -2 Kexample.com.+003+26160</code></strong>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater </p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<p>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater The command would print something like:
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </p>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<p><strong class="userinput"><code>example.com. IN DS 26160 5 2 3A1EADA7A74B8D0BA86726B0C227AA85AB8BBD2B2004F41A868A54F0 C5EA0B94</code></strong>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</div>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<div class="refsect1" lang="en">
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<a name="id2543692"></a><h2>FILES</h2>
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User<p>
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
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <code class="filename">Knnnn.+aaa+iiiii.key</code> as generated by
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <span class="refentrytitle">dnssec-keygen</span>(8).
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<p>
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
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <code class="option">dnsname</code>.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</div>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<div class="refsect1" lang="en">
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<a name="id2543728"></a><h2>CAVEAT</h2>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<p>
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User A keyfile error can give a "file not found" even if the file exists.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</div>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<div class="refsect1" lang="en">
b27ce68bae92006e2ad7a9b75602c6385e529c3bAutomatic Updater<a name="id2543737"></a><h2>SEE ALSO</h2>
922312472e2e05ebc64993d465999c5351b83036Automatic Updater<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 <em class="citetitle">RFC 3658</em>,
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <em class="citetitle">RFC 4431</em>.
922312472e2e05ebc64993d465999c5351b83036Automatic Updater <em class="citetitle">RFC 4509</em>.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</div>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<div class="refsect1" lang="en">
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User<a name="id2543777"></a><h2>AUTHOR</h2>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<p><span class="corpauthor">Internet Systems Consortium</span>
922312472e2e05ebc64993d465999c5351b83036Automatic Updater </p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</div>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</div></body>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</html>
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User