BIND 9 Administrator Reference Manual Copyright C 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Internet Systems Consortium, Inc
Total Page:16
File Type:pdf, Size:1020Kb
BIND 9 Administrator Reference Manual Copyright c 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Internet Systems Consortium, Inc. (”ISC”) Copyright c 2000, 2001, 2002, 2003 Internet Software Consortium. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED ”AS IS” AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Internet System Consortium 950 Charter Street Redwood City, California USA http://www.isc.org/ Contents 1 Introduction 1 1.1 Scope of Document . 1 1.2 Organization of This Document . 1 1.3 Conventions Used in This Document . 1 1.4 The Domain Name System (DNS) . 2 1.4.1 DNS Fundamentals . 2 1.4.2 Domains and Domain Names . 2 1.4.3 Zones . 2 1.4.4 Authoritative Name Servers . 3 1.4.4.1 The Primary Master . 3 1.4.4.2 Slave Servers . 3 1.4.4.3 Stealth Servers . 3 1.4.5 Caching Name Servers . 4 1.4.5.1 Forwarding . 4 1.4.6 Name Servers in Multiple Roles . 4 2 BIND Resource Requirements 5 2.1 Hardware requirements . 5 2.2 CPU Requirements . 5 2.3 Memory Requirements . 5 2.4 Name Server Intensive Environment Issues . 5 2.5 Supported Operating Systems . 6 3 Name Server Configuration 7 3.1 Sample Configurations . 7 3.1.1 A Caching-only Name Server . 7 3.1.2 An Authoritative-only Name Server . 7 3.2 Load Balancing . 8 3.3 Name Server Operations . 9 3.3.1 Tools for Use With the Name Server Daemon . 9 3.3.1.1 Diagnostic Tools . 9 3.3.1.2 Administrative Tools . 9 3.3.2 Signals . 13 4 Advanced DNS Features 15 4.1 Notify . 15 4.2 Dynamic Update . 15 4.2.1 The journal file . 16 4.3 Incremental Zone Transfers (IXFR) . 16 4.4 Split DNS . 16 4.4.1 Example split DNS setup . 17 4.5 TSIG . 19 4.5.1 Generate Shared Keys for Each Pair of Hosts . 20 4.5.1.1 Automatic Generation . 20 4.5.1.2 Manual Generation . 20 4.5.2 Copying the Shared Secret to Both Machines . 20 4.5.3 Informing the Servers of the Key’s Existence . 20 4.5.4 Instructing the Server to Use the Key . 21 4.5.5 TSIG Key Based Access Control . 21 4.5.6 Errors . 21 4.6 TKEY . 21 4.7 SIG(0) . 22 4.8 DNSSEC . 22 i CONTENTS 4.8.1 Generating Keys . 22 4.8.2 Signing the Zone . 23 4.8.3 Configuring Servers . 23 4.9 DNSSEC, Dynamic Zones, and Automatic Signing . 25 4.9.1 Converting from insecure to secure . 25 4.9.2 Dynamic DNS update method . 26 4.9.3 Fully automatic zone signing . 26 4.9.4 Private-type records . 26 4.9.5 DNSKEY rollovers . 27 4.9.6 Dynamic DNS update method . 27 4.9.7 Automatic key rollovers . 27 4.9.8 NSEC3PARAM rollovers via UPDATE . 28 4.9.9 Converting from NSEC to NSEC3 . 28 4.9.10 Converting from NSEC3 to NSEC . 28 4.9.11 Converting from secure to insecure . 28 4.9.12 Periodic re-signing . 28 4.9.13 NSEC3 and OPTOUT . 28 4.10 Dynamic Trust Anchor Management . 28 4.10.1 Validating Resolver . 28 4.10.2 Authoritative Server . 29 4.11 PKCS #11 (Cryptoki) support . 29 4.11.1 Prerequisites . 30 4.11.1.1 Building OpenSSL for the AEP Keyper on Linux . 31 4.11.1.2 Building OpenSSL for the SCA 6000 on Solaris . 31 4.11.1.3 Building OpenSSL for SoftHSM . 32 4.11.2 Building BIND 9 with PKCS#11 . 32 4.11.2.1 Configuring BIND 9 for Linux with the AEP Keyper . 32 4.11.2.2 Configuring BIND 9 for Solaris with the SCA 6000 . 33 4.11.2.3 Configuring BIND 9 for SoftHSM . 33 4.11.3 PKCS #11 Tools . 33 4.11.4 Using the HSM . 33 4.11.5 Specifying the engine on the command line . 35 4.11.6 Running named with automatic zone re-signing . 35 4.12 IPv6 Support in BIND 9 . 36 4.12.1 Address Lookups Using AAAA Records . 36 4.12.2 Address to Name Lookups Using Nibble Format . 36 5 The BIND 9 Lightweight Resolver 37 5.1 The Lightweight Resolver Library . 37 5.2 Running a Resolver Daemon . 37 6 BIND 9 Configuration Reference 39 6.1 Configuration File Elements . 39 6.1.1 Address Match Lists . 41 6.1.1.1 Syntax . 41 6.1.1.2 Definition and Usage . 41 6.1.2 Comment Syntax . ..