PageRenderTime 38ms CodeModel.GetById 14ms app.highlight 17ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/bind9/bin/dnssec/dnssec-dsfromkey.html

https://bitbucket.org/freebsd/freebsd-head/
HTML | 153 lines | 137 code | 0 blank | 16 comment | 0 complexity | ba99338148ed149c6a325ab2ef47d06d MD5 | raw file
  1<!--
  2 - Copyright (C) 2008-2010 Internet Systems Consortium, Inc. ("ISC")
  3 - 
  4 - Permission to use, copy, modify, and/or distribute this software for any
  5 - purpose with or without fee is hereby granted, provided that the above
  6 - copyright notice and this permission notice appear in all copies.
  7 - 
  8 - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
  9 - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 10 - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
 11 - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
 12 - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
 13 - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 14 - PERFORMANCE OF THIS SOFTWARE.
 15-->
 16<!-- $Id$ -->
 17<html>
 18<head>
 19<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
 20<title>dnssec-dsfromkey</title>
 21<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
 22</head>
 23<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
 24<a name="man.dnssec-dsfromkey"></a><div class="titlepage"></div>
 25<div class="refnamediv">
 26<h2>Name</h2>
 27<p><span class="application">dnssec-dsfromkey</span> &#8212; DNSSEC DS RR generation tool</p>
 28</div>
 29<div class="refsynopsisdiv">
 30<h2>Synopsis</h2>
 31<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>
 32<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>
 33</div>
 34<div class="refsect1" lang="en">
 35<a name="id2543465"></a><h2>DESCRIPTION</h2>
 36<p><span><strong class="command">dnssec-dsfromkey</strong></span>
 37      outputs the Delegation Signer (DS) resource record (RR), as defined in
 38      RFC 3658 and RFC 4509, for the given key(s).
 39    </p>
 40</div>
 41<div class="refsect1" lang="en">
 42<a name="id2543477"></a><h2>OPTIONS</h2>
 43<div class="variablelist"><dl>
 44<dt><span class="term">-1</span></dt>
 45<dd><p>
 46            Use SHA-1 as the digest algorithm (the default is to use
 47            both SHA-1 and SHA-256).
 48          </p></dd>
 49<dt><span class="term">-2</span></dt>
 50<dd><p>
 51            Use SHA-256 as the digest algorithm.
 52          </p></dd>
 53<dt><span class="term">-a <em class="replaceable"><code>algorithm</code></em></span></dt>
 54<dd><p>
 55            Select the digest algorithm. The value of
 56            <code class="option">algorithm</code> must be one of SHA-1 (SHA1),
 57            SHA-256 (SHA256) or GOST. These values are case insensitive.
 58          </p></dd>
 59<dt><span class="term">-K <em class="replaceable"><code>directory</code></em></span></dt>
 60<dd><p>
 61            Look for key files (or, in keyset mode,
 62            <code class="filename">keyset-</code> files) in
 63            <code class="option">directory</code>.
 64          </p></dd>
 65<dt><span class="term">-f <em class="replaceable"><code>file</code></em></span></dt>
 66<dd><p>
 67            Zone file mode: in place of the keyfile name, the argument is
 68            the DNS domain name of a zone master file, which can be read
 69            from <code class="option">file</code>.  If the zone name is the same as
 70            <code class="option">file</code>, then it may be omitted.
 71          </p></dd>
 72<dt><span class="term">-A</span></dt>
 73<dd><p>
 74            Include ZSK's when generating DS records.  Without this option,
 75            only keys which have the KSK flag set will be converted to DS
 76            records and printed.  Useful only in zone file mode. 
 77          </p></dd>
 78<dt><span class="term">-l <em class="replaceable"><code>domain</code></em></span></dt>
 79<dd><p>
 80            Generate a DLV set instead of a DS set.  The specified
 81            <code class="option">domain</code> is appended to the name for each
 82            record in the set.
 83            The DNSSEC Lookaside Validation (DLV) RR is described
 84            in RFC 4431.
 85          </p></dd>
 86<dt><span class="term">-s</span></dt>
 87<dd><p>
 88            Keyset mode: in place of the keyfile name, the argument is
 89            the DNS domain name of a keyset file.
 90          </p></dd>
 91<dt><span class="term">-c <em class="replaceable"><code>class</code></em></span></dt>
 92<dd><p>
 93            Specifies the DNS class (default is IN).  Useful only
 94            in keyset or zone file mode.
 95          </p></dd>
 96<dt><span class="term">-v <em class="replaceable"><code>level</code></em></span></dt>
 97<dd><p>
 98            Sets the debugging level.
 99          </p></dd>
100</dl></div>
101</div>
102<div class="refsect1" lang="en">
103<a name="id2543664"></a><h2>EXAMPLE</h2>
104<p>
105      To build the SHA-256 DS RR from the
106      <strong class="userinput"><code>Kexample.com.+003+26160</code></strong>
107      keyfile name, the following command would be issued:
108    </p>
109<p><strong class="userinput"><code>dnssec-dsfromkey -2 Kexample.com.+003+26160</code></strong>
110    </p>
111<p>
112      The command would print something like:
113    </p>
114<p><strong class="userinput"><code>example.com. IN DS 26160 5 2 3A1EADA7A74B8D0BA86726B0C227AA85AB8BBD2B2004F41A868A54F0 C5EA0B94</code></strong>
115    </p>
116</div>
117<div class="refsect1" lang="en">
118<a name="id2543693"></a><h2>FILES</h2>
119<p>
120      The keyfile can be designed by the key identification
121      <code class="filename">Knnnn.+aaa+iiiii</code> or the full file name
122      <code class="filename">Knnnn.+aaa+iiiii.key</code> as generated by
123      <span class="refentrytitle">dnssec-keygen</span>(8).
124    </p>
125<p>
126      The keyset file name is built from the <code class="option">directory</code>,
127      the string <code class="filename">keyset-</code> and the
128      <code class="option">dnsname</code>.
129    </p>
130</div>
131<div class="refsect1" lang="en">
132<a name="id2543729"></a><h2>CAVEAT</h2>
133<p>
134      A keyfile error can give a "file not found" even if the file exists.
135    </p>
136</div>
137<div class="refsect1" lang="en">
138<a name="id2543738"></a><h2>SEE ALSO</h2>
139<p><span class="citerefentry"><span class="refentrytitle">dnssec-keygen</span>(8)</span>,
140      <span class="citerefentry"><span class="refentrytitle">dnssec-signzone</span>(8)</span>,
141      <em class="citetitle">BIND 9 Administrator Reference Manual</em>,
142      <em class="citetitle">RFC 3658</em>,
143      <em class="citetitle">RFC 4431</em>.
144      <em class="citetitle">RFC 4509</em>.
145    </p>
146</div>
147<div class="refsect1" lang="en">
148<a name="id2543778"></a><h2>AUTHOR</h2>
149<p><span class="corpauthor">Internet Systems Consortium</span>
150    </p>
151</div>
152</div></body>
153</html>