Bv9ARM.ch04.html revision 29651c3a80835482fa1612c24653c9b0c0e2e205
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang - Copyright (C) 2004-2012 Internet Systems Consortium, Inc. ("ISC")
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang - Copyright (C) 2000-2003 Internet Software Consortium.
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich - Permission to use, copy, modify, and/or distribute this software for any
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich - purpose with or without fee is hereby granted, provided that the above
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich - copyright notice and this permission notice appear in all copies.
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang - PERFORMANCE OF THIS SOFTWARE.
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang<!-- $Id$ -->
b569e96f02dea40cb81899293c7d99e1d750b3c0Till Mossakowski<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang<meta name="generator" content="DocBook XSL Stylesheets V1.71.1">
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<link rel="start" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
1a5239c089cfe6c684855256c02496e6a7a4d281Heng Jiang<link rel="up" href="Bv9ARM.html" title="BIND 9 Administrator Reference Manual">
1a5239c089cfe6c684855256c02496e6a7a4d281Heng Jiang<link rel="prev" href="Bv9ARM.ch03.html" title="Chapter�3.�Name Server Configuration">
b569e96f02dea40cb81899293c7d99e1d750b3c0Till Mossakowski<link rel="next" href="Bv9ARM.ch05.html" title="Chapter�5.�The BIND 9 Lightweight Resolver">
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang<tr><th colspan="3" align="center">Chapter�4.�Advanced DNS Features</th></tr>
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang<a accesskey="p" href="Bv9ARM.ch03.html">Prev</a>�</td>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<td width="20%" align="right">�<a accesskey="n" href="Bv9ARM.ch05.html">Next</a>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<div class="titlepage"><div><div><h2 class="title">
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<a name="Bv9ARM.ch04"></a>Chapter�4.�Advanced DNS Features</h2></div></div></div>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect1"><a href="Bv9ARM.ch04.html#notify">Notify</a></span></dt>
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang<dt><span class="sect1"><a href="Bv9ARM.ch04.html#dynamic_update">Dynamic Update</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dd><dl><dt><span class="sect2"><a href="Bv9ARM.ch04.html#journal">The journal file</a></span></dt></dl></dd>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect1"><a href="Bv9ARM.ch04.html#incremental_zone_transfers">Incremental Zone Transfers (IXFR)</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect1"><a href="Bv9ARM.ch04.html#id2571165">Split DNS</a></span></dt>
18d7a52788fff16e6f8d5a9f13dfb87080a3e245Heng Jiang<dd><dl><dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2571184">Example split DNS setup</a></span></dt></dl></dd>
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang<dt><span class="sect1"><a href="Bv9ARM.ch04.html#tsig">TSIG</a></span></dt>
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2571685">Generate Shared Keys for Each Pair of Hosts</a></span></dt>
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2571827">Copying the Shared Secret to Both Machines</a></span></dt>
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2571837">Informing the Servers of the Key's Existence</a></span></dt>
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2571874">Instructing the Server to Use the Key</a></span></dt>
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2572068">TSIG Key Based Access Control</a></span></dt>
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2572117">Errors</a></span></dt>
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang<dt><span class="sect1"><a href="Bv9ARM.ch04.html#id2572131">TKEY</a></span></dt>
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder<dt><span class="sect1"><a href="Bv9ARM.ch04.html#id2572180">SIG(0)</a></span></dt>
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang<dt><span class="sect1"><a href="Bv9ARM.ch04.html#DNSSEC">DNSSEC</a></span></dt>
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2572248">Generating Keys</a></span></dt>
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2572327">Signing the Zone</a></span></dt>
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2572408">Configuring Servers</a></span></dt>
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang<dt><span class="sect1"><a href="Bv9ARM.ch04.html#dnssec.dynamic.zones">DNSSEC, Dynamic Zones, and Automatic Signing</a></span></dt>
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2608822">Converting from insecure to secure</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2608859">Dynamic DNS update method</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2563498">Fully automatic zone signing</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2563670">Private-type records</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2563707">DNSKEY rollovers</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2563720">Dynamic DNS update method</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2563753">Automatic key rollovers</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2563848">NSEC3PARAM rollovers via UPDATE</a></span></dt>
20bcb42e212faef728ac606e69dc1f9de55a9988Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2563858">Converting from NSEC to NSEC3</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2563867">Converting from NSEC3 to NSEC</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2563880">Converting from secure to insecure</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2583442">Periodic re-signing</a></span></dt>
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2583451">NSEC3 and OPTOUT</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect1"><a href="Bv9ARM.ch04.html#rfc5011.support">Dynamic Trust Anchor Management</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2583553">Validating Resolver</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2583575">Authoritative Server</a></span></dt>
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich<dt><span class="sect1"><a href="Bv9ARM.ch04.html#pkcs11">PKCS #11 (Cryptoki) support</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2653106">Prerequisites</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2609508">Building BIND 9 with PKCS#11</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2636052">PKCS #11 Tools</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2636083">Using the HSM</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2636349">Specifying the engine on the command line</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2636395">Running named with automatic zone re-signing</a></span></dt>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<dt><span class="sect1"><a href="Bv9ARM.ch04.html#id2572696">IPv6 Support in <acronym class="acronym">BIND</acronym> 9</a></span></dt>
806bce66335c88260a63e7524b1efc68d8dfacc1Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2572963">Address Lookups Using AAAA Records</a></span></dt>
806bce66335c88260a63e7524b1efc68d8dfacc1Heng Jiang<dt><span class="sect2"><a href="Bv9ARM.ch04.html#id2572984">Address to Name Lookups Using Nibble Format</a></span></dt>
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang<div class="titlepage"><div><div><h2 class="title" style="clear: both">
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang<a name="notify"></a>Notify</h2></div></div></div>
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang <acronym class="acronym">DNS</acronym> NOTIFY is a mechanism that allows master
806bce66335c88260a63e7524b1efc68d8dfacc1Heng Jiang servers to notify their slave servers of changes to a zone's data. In
806bce66335c88260a63e7524b1efc68d8dfacc1Heng Jiang response to a <span><strong class="command">NOTIFY</strong></span> from a master server, the
806bce66335c88260a63e7524b1efc68d8dfacc1Heng Jiang slave will check to see that its version of the zone is the
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang current version and, if not, initiate a zone transfer.
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang For more information about <acronym class="acronym">DNS</acronym>
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang <span><strong class="command">NOTIFY</strong></span>, see the description of the
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang <span><strong class="command">notify</strong></span> option in <a href="Bv9ARM.ch06.html#boolean_options" title="Boolean Options">the section called “Boolean Options”</a> and
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang the description of the zone option <span><strong class="command">also-notify</strong></span> in
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang <a href="Bv9ARM.ch06.html#zone_transfers" title="Zone Transfers">the section called “Zone Transfers”</a>. The <span><strong class="command">NOTIFY</strong></span>
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang protocol is specified in RFC 1996.
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang As a slave zone can also be a master to other slaves, <span><strong class="command">named</strong></span>,
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang by default, sends <span><strong class="command">NOTIFY</strong></span> messages for every zone
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang it loads. Specifying <span><strong class="command">notify master-only;</strong></span> will
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang cause <span><strong class="command">named</strong></span> to only send <span><strong class="command">NOTIFY</strong></span> for master
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang zones that it loads.
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang<div class="titlepage"><div><div><h2 class="title" style="clear: both">
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang<a name="dynamic_update"></a>Dynamic Update</h2></div></div></div>
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang Dynamic Update is a method for adding, replacing or deleting
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang records in a master server by sending it a special form of DNS
806bce66335c88260a63e7524b1efc68d8dfacc1Heng Jiang messages. The format and meaning of these messages is specified
806bce66335c88260a63e7524b1efc68d8dfacc1Heng Jiang in RFC 2136.
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder Dynamic update is enabled by including an
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder <span><strong class="command">allow-update</strong></span> or an <span><strong class="command">update-policy</strong></span>
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder clause in the <span><strong class="command">zone</strong></span> statement.
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich If the zone's <span><strong class="command">update-policy</strong></span> is set to
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich <strong class="userinput"><code>local</code></strong>, updates to the zone
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich will be permitted for the key <code class="varname">local-ddns</code>,
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich which will be generated by <span><strong class="command">named</strong></span> at startup.
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich See <a href="Bv9ARM.ch06.html#dynamic_update_policies" title="Dynamic Update Policies">the section called “Dynamic Update Policies”</a> for more details.
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang Dynamic updates using Kerberos signed requests can be made
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich using the TKEY/GSS protocol by setting either the
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich <span><strong class="command">tkey-gssapi-keytab</strong></span> option, or alternatively
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich by setting both the <span><strong class="command">tkey-gssapi-credential</strong></span>
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich and <span><strong class="command">tkey-domain</strong></span> options. Once enabled,
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich Kerberos signed requests will be matched against the update
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder policies for the zone, using the Kerberos principal as the
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich signer for the request.
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich Updating of secure zones (zones using DNSSEC) follows RFC
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder 3007: RRSIG, NSEC and NSEC3 records affected by updates are
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang automatically regenerated by the server using an online
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich zone key. Update authorization is based on transaction
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder signatures and an explicit server policy.
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder<div class="titlepage"><div><div><h3 class="title">
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang<a name="journal"></a>The journal file</h3></div></div></div>
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich All changes made to a zone using dynamic update are stored
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich in the zone's journal file. This file is automatically created
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang by the server when the first dynamic update takes place.
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang The name of the journal file is formed by appending the extension
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang <code class="filename">.jnl</code> to the name of the
20bcb42e212faef728ac606e69dc1f9de55a9988Heng Jiang corresponding zone
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder file unless specifically overridden. The journal file is in a
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang binary format and should not be edited manually.
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang The server will also occasionally write ("dump")
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang the complete contents of the updated zone to its zone file.
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder This is not done immediately after
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder each dynamic update, because that would be too slow when a large
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang zone is updated frequently. Instead, the dump is delayed by
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang up to 15 minutes, allowing additional updates to take place.
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder During the dump process, transient files will be created
f5c7d6d3f873962ccbe63276243e88030ce8801dHeng Jiang with the extensions <code class="filename">.jnw</code> and
f5c7d6d3f873962ccbe63276243e88030ce8801dHeng Jiang <code class="filename">.jbk</code>; under ordinary circumstances, these
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang will be removed when the dump is complete, and can be safely
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang When a server is restarted after a shutdown or crash, it will replay
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang the journal file to incorporate into the zone any updates that
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder place after the last zone dump.
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder Changes that result from incoming incremental zone transfers are
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang journalled in a similar way.
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder The zone files of dynamic zones cannot normally be edited by
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang hand because they are not guaranteed to contain the most recent
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang dynamic changes — those are only in the journal file.
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder The only way to ensure that the zone file of a dynamic zone
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang is up to date is to run <span><strong class="command">rndc stop</strong></span>.
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder If you have to make changes to a dynamic zone
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder manually, the following procedure will work: Disable dynamic updates
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang to the zone using
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang <span><strong class="command">rndc freeze <em class="replaceable"><code>zone</code></em></strong></span>.
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang This will also remove the zone's <code class="filename">.jnl</code> file
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder and update the master file. Edit the zone file. Run
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang <span><strong class="command">rndc thaw <em class="replaceable"><code>zone</code></em></strong></span>
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang to reload the changed zone and re-enable dynamic updates.
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder<div class="titlepage"><div><div><h2 class="title" style="clear: both">
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder<a name="incremental_zone_transfers"></a>Incremental Zone Transfers (IXFR)</h2></div></div></div>
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder The incremental zone transfer (IXFR) protocol is a way for
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang slave servers to transfer only changed data, instead of having to
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang transfer the entire zone. The IXFR protocol is specified in RFC
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder 1995. See <a href="Bv9ARM.ch09.html#proposed_standards">Proposed Standards</a>.
0b31ea5ec0e20f17d55845a5d803c48466e01ca3Heng Jiang When acting as a master, <acronym class="acronym">BIND</acronym> 9
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang supports IXFR for those zones
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang where the necessary change history information is available. These
0b31ea5ec0e20f17d55845a5d803c48466e01ca3Heng Jiang include master zones maintained by dynamic update and slave zones
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang whose data was obtained by IXFR. For manually maintained master
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang zones, and for slave zones obtained by performing a full zone
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang transfer (AXFR), IXFR is supported only if the option
1c7aefd3163ebc1cd1f56ed93f39a7d688b97fedHeng Jiang <span><strong class="command">ixfr-from-differences</strong></span> is set
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang to <strong class="userinput"><code>yes</code></strong>.
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang When acting as a slave, <acronym class="acronym">BIND</acronym> 9 will
0b31ea5ec0e20f17d55845a5d803c48466e01ca3Heng Jiang attempt to use IXFR unless
0b31ea5ec0e20f17d55845a5d803c48466e01ca3Heng Jiang it is explicitly disabled. For more information about disabling
0b31ea5ec0e20f17d55845a5d803c48466e01ca3Heng Jiang IXFR, see the description of the <span><strong class="command">request-ixfr</strong></span> clause
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder of the <span><strong class="command">server</strong></span> statement.
0b31ea5ec0e20f17d55845a5d803c48466e01ca3Heng Jiang<div class="titlepage"><div><div><h2 class="title" style="clear: both">
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang<a name="id2571165"></a>Split DNS</h2></div></div></div>
9312e4bac069d53091c92e20b03dcb4e07f40f9fHeng Jiang Setting up different views, or visibility, of the DNS space to
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang internal and external resolvers is usually referred to as a
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang <span class="emphasis"><em>Split DNS</em></span> setup. There are several
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang reasons an organization would want to set up its DNS this way.
36089fe7ad5167b48f702514056071fd8739faeaHeng Jiang One common reason for setting up a DNS system this way is
175c9e5fde43fc804a8d25198133288669b9d54cKlaus Luettich to hide "internal" DNS information from "external" clients on the
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang Internet. There is some debate as to whether or not this is actually
79a7f2de0a7e933d26b64d35b2801618ff015954Klaus Luettich Internal DNS information leaks out in many ways (via email headers,
175c9e5fde43fc804a8d25198133288669b9d54cKlaus Luettich for example) and most savvy "attackers" can find the information
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang they need using other means.
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang However, since listing addresses of internal servers that
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang external clients cannot possibly reach can result in
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang connection delays and other annoyances, an organization may
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang choose to use a Split DNS to present a consistent view of itself
d6814e7c7056c8078084f4fd0c627bfcebe935b0Heng Jiang to the outside world.
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder Another common reason for setting up a Split DNS system is
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang to allow internal networks that are behind filters or in RFC 1918
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang space (reserved IP space, as documented in RFC 1918) to resolve DNS
f5ca7e49a6d1602c3f3a12ea6723fa67fea5757aHeng Jiang on the Internet. Split DNS can also be used to allow mail from outside
d6814e7c7056c8078084f4fd0c627bfcebe935b0Heng Jiang back in to the internal network.
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang<div class="titlepage"><div><div><h3 class="title">
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang<a name="id2571184"></a>Example split DNS setup</h3></div></div></div>
b91c4dbd00294ce29ab1ae84ad4e8c93ca5ad943Heng Jiang Let's say a company named <span class="emphasis"><em>Example, Inc.</em></span>
b91c4dbd00294ce29ab1ae84ad4e8c93ca5ad943Heng Jiang has several corporate sites that have an internal network with
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang Internet Protocol (IP) space and an external demilitarized zone (DMZ),
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang or "outside" section of a network, that is available to the public.
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang <span class="emphasis"><em>Example, Inc.</em></span> wants its internal clients
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang to be able to resolve external hostnames and to exchange mail with
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang people on the outside. The company also wants its internal resolvers
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang to have access to certain internal-only zones that are not available
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang at all outside of the internal network.
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang In order to accomplish this, the company will set up two sets
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang of name servers. One set will be on the inside network (in the
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang IP space) and the other set will be on bastion hosts, which are
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang hosts that can talk to both sides of its network, in the DMZ.
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang The internal servers will be configured to forward all queries,
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang except queries for <code class="filename">site1.internal</code>, <code class="filename">site2.internal</code>, <code class="filename">site1.example.com</code>,
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang and <code class="filename">site2.example.com</code>, to the servers
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang DMZ. These internal servers will have complete sets of information
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang for <code class="filename">site1.example.com</code>, <code class="filename">site2.example.com</code>, <code class="filename">site1.internal</code>,
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang and <code class="filename">site2.internal</code>.
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang To protect the <code class="filename">site1.internal</code> and <code class="filename">site2.internal</code> domains,
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder the internal name servers must be configured to disallow all queries
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang to these domains from any external hosts, including the bastion
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang The external servers, which are on the bastion hosts, will
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder be configured to serve the "public" version of the <code class="filename">site1</code> and <code class="filename">site2.example.com</code> zones.
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang This could include things such as the host records for public servers
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang (<code class="filename">www.example.com</code> and <code class="filename">ftp.example.com</code>),
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang and mail exchange (MX) records (<code class="filename">a.mx.example.com</code> and <code class="filename">b.mx.example.com</code>).
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang In addition, the public <code class="filename">site1</code> and <code class="filename">site2.example.com</code> zones
d6814e7c7056c8078084f4fd0c627bfcebe935b0Heng Jiang should have special MX records that contain wildcard (`*') records
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang pointing to the bastion hosts. This is needed because external mail
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang servers do not have any other way of looking up how to deliver mail
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang to those internal hosts. With the wildcard records, the mail will
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang be delivered to the bastion host, which can then forward it on to
d6814e7c7056c8078084f4fd0c627bfcebe935b0Heng Jiang internal hosts.
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang Here's an example of a wildcard MX record:
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang<pre class="programlisting">* IN MX 10 external1.example.com.</pre>
67d5e49547d78aa56a8f9ba5e64a950b730eba66Till Mossakowski Now that they accept mail on behalf of anything in the internal
262ff0b92f2ba957c821ce8d9b4ee2f554cdf701Heng Jiang network, the bastion hosts will need to know how to deliver mail
f5ca7e49a6d1602c3f3a12ea6723fa67fea5757aHeng Jiang to internal hosts. In order for this to work properly, the resolvers
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang the bastion hosts will need to be configured to point to the internal
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang name servers for DNS resolution.
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang Queries for internal hostnames will be answered by the internal
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang servers, and queries for external hostnames will be forwarded back
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang out to the DNS servers on the bastion hosts.
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang In order for all this to work properly, internal clients will
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang need to be configured to query <span class="emphasis"><em>only</em></span> the internal
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang name servers for DNS queries. This could also be enforced via
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang filtering on the network.
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang If everything has been set properly, <span class="emphasis"><em>Example, Inc.</em></span>'s
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang internal clients will now be able to:
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang Look up any hostnames in the <code class="literal">site1</code>
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang <code class="literal">site2.example.com</code> zones.
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang Look up any hostnames in the <code class="literal">site1.internal</code> and
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang <code class="literal">site2.internal</code> domains.
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang<li>Exchange mail with both internal and external people.</li>
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang Hosts on the Internet will be able to:
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang Look up any hostnames in the <code class="literal">site1</code>
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang <code class="literal">site2.example.com</code> zones.
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang Exchange mail with anyone in the <code class="literal">site1</code> and
f5ca7e49a6d1602c3f3a12ea6723fa67fea5757aHeng Jiang <code class="literal">site2.example.com</code> zones.
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang Here is an example configuration for the setup we just
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang described above. Note that this is only configuration information;
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang for information on how to configure your zone files, see <a href="Bv9ARM.ch03.html#sample_configuration" title="Sample Configurations">the section called “Sample Configurations”</a>.
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang Internal DNS server config:
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiangacl internals { 172.16.72.0/24; 192.168.1.0/24; };
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiangacl externals { <code class="varname">bastion-ips-go-here</code>; };
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang forward only;
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang // forward to external servers
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang forwarders {
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang <code class="varname">bastion-ips-go-here</code>;
876096baba5bb126049ecde28ff6644fae78d7a3Christian Maeder // sample allow-transfer (no one)
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang allow-transfer { none; };
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang // restrict query access
6c8dc7ab7cb52a12cba748fe0f6b8d8d17a95eb9Heng Jiang allow-query { internals; externals; };
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang // restrict recursion
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang allow-recursion { internals; };
b91c4dbd00294ce29ab1ae84ad4e8c93ca5ad943Heng Jiang// sample master zone
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang type master;
c10df434f8e16b46ccf703bf2e38b799f7bcb38bHeng Jiang // do normal iterative resolution (do not forward)
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang forwarders { };
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang allow-query { internals; externals; };
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang allow-transfer { internals; };
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang// sample slave zone
b91c4dbd00294ce29ab1ae84ad4e8c93ca5ad943Heng Jiang masters { 172.16.72.3; };
c51b5677113ce7260c44afb3c5932eea6c875e27Heng Jiang forwarders { };
f5ca7e49a6d1602c3f3a12ea6723fa67fea5757aHeng Jiang allow-query { internals; externals; };
b3c65285705f6d184b5f8b00b1a328d96b6b19c5Heng Jiang allow-transfer { internals; };
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang type master;
b3c65285705f6d184b5f8b00b1a328d96b6b19c5Heng Jiang forwarders { };
c51b5677113ce7260c44afb3c5932eea6c875e27Heng Jiang allow-query { internals; };
c51b5677113ce7260c44afb3c5932eea6c875e27Heng Jiang allow-transfer { internals; }
3d59ee7815197f19948fc512cd90f9f26fd4d78fHeng Jiang masters { 172.16.72.3; };
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang forwarders { };
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang allow-query { internals };
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang allow-transfer { internals; }
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang External (bastion host) DNS server config:
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiangacl internals { 172.16.72.0/24; 192.168.1.0/24; };
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiangacl externals { bastion-ips-go-here; };
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang // sample allow-transfer (no one)
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang allow-transfer { none; };
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang // default query access
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang allow-query { any; };
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang // restrict cache access
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang allow-query-cache { internals; externals; };
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang // restrict recursion
b3c65285705f6d184b5f8b00b1a328d96b6b19c5Heng Jiang allow-recursion { internals; externals; };
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang// sample slave zone
f5ca7e49a6d1602c3f3a12ea6723fa67fea5757aHeng Jiang type master;
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang allow-transfer { internals; externals; };
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang masters { another_bastion_host_maybe; };
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang allow-transfer { internals; externals; }
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang In the <code class="filename">resolv.conf</code> (or equivalent) on
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang the bastion host(s):
20bcb42e212faef728ac606e69dc1f9de55a9988Heng Jiangnameserver 172.16.72.2
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiangnameserver 172.16.72.3
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiangnameserver 172.16.72.4
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang<div class="titlepage"><div><div><h2 class="title" style="clear: both">
36089fe7ad5167b48f702514056071fd8739faeaHeng Jiang This is a short guide to setting up Transaction SIGnatures
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang (TSIG) based transaction security in <acronym class="acronym">BIND</acronym>. It describes changes
44ea7e3effe9200ccc6abd3231ae56cf5cfb0fb8Heng Jiang to the configuration file as well as what changes are required for
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang different features, including the process of creating transaction
95242ab07e9aa13b37c16cac36a75d190e1766e4Heng Jiang keys and using transaction signatures with <acronym class="acronym">BIND</acronym>.
A shared secret is generated to be shared between <span class="emphasis"><em>host1</em></span> and <span class="emphasis"><em>host2</em></span>.
<strong class="userinput"><code>dnssec-keygen -a hmac-sha256 -b 128 -n HOST host1-host2.</code></strong>
Imagine <span class="emphasis"><em>host1</em></span> and <span class="emphasis"><em>host 2</em></span>
both servers. The following is added to each server's <code class="filename">named.conf</code> file:
be told when keys are to be used. The following is added to the <code class="filename">named.conf</code> file
for <span class="emphasis"><em>host1</em></span>, if the IP address of <span class="emphasis"><em>host2</em></span> is
to that address, the message will be signed with the specified key. <span class="emphasis"><em>host1</em></span> will
configuration file (with <span class="emphasis"><em>host1</em></span>'s address) for <span class="emphasis"><em>host2</em></span> to
See <a href="Bv9ARM.ch06.html#dynamic_update_policies" title="Dynamic Update Policies">the section called “Dynamic Update Policies”</a> for a discussion of
that the tools shipped with BIND 9.2.x and earlier are not compatible
<strong class="userinput"><code>dnssec-keygen -a RSASHA1 -b 768 -n ZONE child.example.</code></strong>
<strong class="userinput"><code>yes</code></strong> or <strong class="userinput"><code>auto</code></strong>.
example.com. 257 3 5 "AwEAAaxPMcR2x0HbQV4WeZB6oEDX+r0QM6
<a name="dnssec.dynamic.zones"></a>DNSSEC, Dynamic Zones, and Automatic Signing</h2></div></div></div>
zone example.net {
> update add example.net DNSKEY 256 3 7 AwEAAZn17pUF0KpbPA2c7Gz76Vb18v0teKT3EyAGfBfL8eQ8al35zz3Y I1m/SAQBxIqMfLtIwqWPdgthsu36azGQAX8=
> update add example.net DNSKEY 257 3 7 AwEAAd/7odU/64o2LGsifbLtQmtO8dFDtTAZXSX2+X3e/UNlq9IHq3Y0 XtC0Iuawl/qkaKVxXe2lo8Ct+dM6UehyCqk=
> update add example.net DNSKEY 256 3 7 AwEAAZn17pUF0KpbPA2c7Gz76Vb18v0teKT3EyAGfBfL8eQ8al35zz3Y I1m/SAQBxIqMfLtIwqWPdgthsu36azGQAX8=
> update add example.net DNSKEY 257 3 7 AwEAAd/7odU/64o2LGsifbLtQmtO8dFDtTAZXSX2+X3e/UNlq9IHq3Y0 XtC0Iuawl/qkaKVxXe2lo8Ct+dM6UehyCqk=
> update add example.net NSEC3PARAM 1 1 100 1234567890
(See <a href="man.dnssec-keygen.html" title="dnssec-keygen"><span class="refentrytitle"><span class="application">dnssec-keygen</span></span>(8)</a> and
<a href="man.dnssec-settime.html" title="dnssec-settime"><span class="refentrytitle"><span class="application">dnssec-settime</span></span>(8)</a> for more information.)
<span><strong class="command">rndc sign</strong></span> or <span><strong class="command">rndc loadkeys</strong></span>
<span><strong class="command">dnssec-keygen</strong></span> or <span><strong class="command">dnssec-settime</strong></span>),
and Usage">the section called “<span><strong class="command">managed-keys</strong></span> Statement Definition
$ <strong class="userinput"><code>dnssec-keygen -K keys -f KSK -P now -A now+2y example.net</code></strong>
$ <strong class="userinput"><code>wget <a href="" target="_top">http://www.openssl.org/source/openssl-0.9.8s.tar.gz</a></code></strong>
$ <strong class="userinput"><code>cp pkcs11.GCC4.0.2.so.4.05 /opt/pkcs11/usr/lib/libpkcs11.so</code></strong>
and "<span><strong class="command">make test</strong></span>". If "<span><strong class="command">make
project (http://www.opendnssec.org) which provides a PKCS#11
$ <strong class="userinput"><code> echo "0:/opt/pkcs11/softhsm.db" > $SOFTHSM_CONF </code></strong>
$ <strong class="userinput"><code> /opt/pkcs11/usr/bin/softhsm --init-token 0 --slot 0 --label softhsm </code></strong>
$ <strong class="userinput"><code>export LD_LIBRARY_PATH=/opt/pkcs11/usr/lib:${LD_LIBRARY_PATH}</code></strong>
$ <strong class="userinput"><code>export KEYPER_LIBRARY_PATH=/opt/Keyper/PKCS11Provider</code></strong>
$ <strong class="userinput"><code>dnssec-keyfromlabel -l sample-ksk -f KSK example.net</code></strong>
by placing the PIN into the openssl.cnf file (in the above
<a name="id2572696"></a>IPv6 Support in <acronym class="acronym">BIND</acronym> 9</h2></div></div></div>
see <a href="Bv9ARM.ch09.html#ipv6addresses" title="IPv6 addresses (AAAA)">the section called “IPv6 addresses (AAAA)”</a>.
$ORIGIN example.com.