dnssec-dsfromkey.html revision 0a7ed88633a680bb881868b75ded4d09a7bbbc50
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<!--
dde8659175c5798267fb0fdefd7576e4efe271b3Automatic Updater - Copyright (C) 2008, 2009 Internet Systems Consortium, Inc. ("ISC")
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic 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.
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic 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
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic 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-->
ca67ebfe9eef0b8f04179f7e511a19e0337a5422Automatic Updater
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<!-- $Id: dnssec-dsfromkey.html,v 1.10 2009/07/19 04:27:55 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>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<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>] {keyfile}</p></div>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic 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">-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">
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<a name="id2543444"></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">
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<a name="id2543456"></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
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <code class="option">algorithm</code> must be one of SHA-1 (SHA1) or
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews SHA-256 (SHA256). These values are case insensitive.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </p></dd>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<dt><span class="term">-K <em class="replaceable"><code>directory</code></em></span></dt>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<dd><p>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater Look for key files (or, in keyset mode,
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater <code class="filename">keyset-</code> files) in
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater <code class="option">directory</code>.
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater </p></dd>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<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.
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater </p></dd>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic 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.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </p></dd>
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt<dt><span class="term">-l <em class="replaceable"><code>domain</code></em></span></dt>
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt<dd><p>
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.
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Hunt </p></dd>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<dt><span class="term">-s</span></dt>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<dd><p>
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 </p></dd>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<dd><p>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater Specifies the DNS class (default is IN). Useful only
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater in keyset or zone file mode.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </p></dd>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<dt><span class="term">-v <em class="replaceable"><code>level</code></em></span></dt>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<dd><p>
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater Sets the debugging level.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </p></dd>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</dl></div>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</div>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<div class="refsect1" lang="en">
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<a name="id2543642"></a><h2>EXAMPLE</h2>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<p>
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>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<p><strong class="userinput"><code>dnssec-dsfromkey -2 Kexample.com.+003+26160</code></strong>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews The command would print something like:
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<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">
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<a name="id2543672"></a><h2>FILES</h2>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<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
b27ce68bae92006e2ad7a9b75602c6385e529c3bAutomatic Updater <code class="filename">Knnnn.+aaa+iiiii.key</code> as generated by
922312472e2e05ebc64993d465999c5351b83036Automatic Updater <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
922312472e2e05ebc64993d465999c5351b83036Automatic Updater <code class="option">dnsname</code>.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</div>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<div class="refsect1" lang="en">
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<a name="id2543707"></a><h2>CAVEAT</h2>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<p>
922312472e2e05ebc64993d465999c5351b83036Automatic Updater 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">
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<a name="id2543717"></a><h2>SEE ALSO</h2>
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 <em class="citetitle">RFC 3658</em>,
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews <em class="citetitle">RFC 4509</em>.
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</div>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<div class="refsect1" lang="en">
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater<a name="id2543753"></a><h2>AUTHOR</h2>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews<p><span class="corpauthor">Internet Systems Consortium</span>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews </p>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</div>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</div></body>
582f8b9a8d170a80ef67475bddb8ad5cf7cd7cadMark Andrews</html>