Book description
Pro DNS and BIND guides you through the challenging array of features surrounding DNS, with a special focus on BIND, the world's most popular DNS implementation. This book unravels the mysteries of DNS, offering insight into origins, evolution, and key concepts like domain names and zone files. This book focuses on running DNS systems based on BIND 9.3.0 the first stable release that includes support for the latest DNSSEC (DNSSEC.bis) standards and a major functional upgrade from previous BIND 9 releases.
If you administer a DNS system or are thinking about running one, or if you need to upgrade to support IPv6 DNS, need to secure a DNS for zone transfer, dynamic update, or other reasons, or if you need to implement DNSSEC, or simply want to understand the DNS system, then this book provides you with a single point of reference. Pro DNS and BIND starts with simple concepts, then moves on to full security-aware DNSSEC configurations. Various features, parameters, and resource records are described and, in the majority of cases, illustrated with one or more examples.
The book contains a complete reference to zone files, Resource Records, and BINDs configuration file parameters. You can treat the book as as a simple paint-by-numbers guide to everything from a simple caching DNS, to the most complex secure DNS (DNSSEC) implementation. Background information is still included for when you need to know what to do and why you have to do it, and so that you can modify processes to meet your unique needs.
Table of contents
- Copyright
- About the Author
- About the Technical Reviewer
- Acknowledgments
-
Introduction
- Who This Book Is For
-
How This Book Is Structured
- Chapter 1, "An Introduction to DNS"
- Chapter 2, "Zone Files and Resource Records"
- Chapter 3, "DNS Operations"
- Chapter 4, "DNS Types"
- Chapter 5, "DNS and IPv6"
- Chapter 6, "Installing BIND"
- Chapter 7, "BIND Type Samples"
- Chapter 8, "Common DNS Tasks"
- Chapter 9, "DNS Diagnostics and Tools"
- Chapter 10, "DNS Secure Configurations"
- Chapter 11, "DNSSEC"
- Chapter 12, "BIND Configuration Reference"
- Chapter 13, "Zone File Reference"
- Chapter 14, "BIND APIs and Resolver Libraries"
- Chapter 15, "DNS Messages and Records"
- Appendix A, "Domain Name Registration"
- Appendix B, "DNS RFCs"
- Additional Material
- Conventions
- Contacting the Author
-
1. Principles and Overview
- 1. An Introduction to DNS
-
2. Zone Files and Resource Records
- 2.1. Zone File Format
- 2.2. Zone File Contents
- 2.3. An Example Zone File
- 2.4. The $TTL Directive
- 2.5. The $ORIGIN Directive
- 2.6. The SOA Resource Record
- 2.7. The NS Resource Record
- 2.8. The MX Resource Record
- 2.9. The A Resource Record
- 2.10. CNAME Resource Record
- 2.11. Additional Resource Records
- 2.12. Standard Configuration File Scenarios
- 2.13. Summary
- 3. DNS Operations
- 4. DNS Types
- 5. DNS and IPv6
-
2. Get Something Running
- 6. Installing BIND
-
7. BIND Type Samples
- 7.1. Before We Start
- 7.2. Master DNS Server
- 7.3. Slave DNS Server
- 7.4. Caching-only DNS Server
- 7.5. Forwarding (a.k.a. Proxy, Client, Remote) DNS Server
- 7.6. Stealth (a.k.a. Split or DMZ) DNS Server
- 7.7. Authoritative-only DNS Server
- 7.8. View-based Authoritative-only DNS Server
- 7.9. Summary
-
8. Common DNS Tasks
- 8.1. Delegate a Subdomain (Subzone)
- 8.2. Virtual Subdomains
- 8.3. Configure Mail Servers Fail-Over
- 8.4. Delegate Reverse Subnet Maps
- 8.5. DNS Load Balancing
- 8.6. Define an SPF Record
- 8.7. Supporting http://example.com
- 8.8. Out-of-Sequence Serial Numbers
- 8.9. Use of Wildcards in Zone Files
- 8.10. Summary
-
9. DNS Diagnostics and Tools
- 9.1. DNS Utilities
- 9.2. The nslookup Utility
- 9.3. BIND dig Utility
- 9.4. BIND named-checkconf Utility
- 9.5. BIND named-checkzone Utility
- 9.6. rndc
- 9.7. rndc-confgen Utility
- 9.8. BIND nsupdate Utility
- 9.9. dnssec-keygen Utility
- 9.10. dnssec-signzone Utility
- 9.11. Diagnosing DNS Problems
- 9.12. Summary
-
3. DNS Security
-
10. DNS Secure Configurations
- 10.1. Security Overview and Audit
- 10.2. Administrative Security
- 10.3. A Cryptographic Overview
- 10.4. Securing Zone Transfers
- 10.5. Securing Dynamic Updates
- 10.6. Summary
- 11. DNSSEC
-
10. DNS Secure Configurations
-
4. Reference
-
12. BIND Configuration Reference
- 12.1. BIND Command Line
- 12.2. BIND Configuration Overview
-
12.3. BIND Clauses
- 12.3.1. BIND address_match_list Definition
- 12.3.2. BIND acl Clause
- 12.3.3. BIND controls Clause
- 12.3.4. BIND include Statement
- 12.3.5. BIND key Clause
- 12.3.6. BIND logging Clause
- 12.3.7. BIND lwres Clause
- 12.3.8. BIND masters Clause
- 12.3.9. BIND options Clause
- 12.3.10. BIND server Clause
- 12.3.11. BIND trusted-keys Clause
- 12.3.12. BIND view Clause
- 12.3.13. BIND zone Clause
- 12.4. BIND Statements
- 12.5. BIND controls Statements
- 12.6. BIND logging Statements
- 12.7. BIND Resolver Statements
-
12.8. BIND Transfer Statements
- 12.8.1. allow-notify
- 12.8.2. allow-transfer
- 12.8.3. allow-update
- 12.8.4. allow-update-forwarding
- 12.8.5. also-notify
- 12.8.6. alt-transfer-source, alt-transfer-source-v6
- 12.8.7. ixfr-from-differences
- 12.8.8. max-journal-size
- 12.8.9. max-refresh-time, min-refresh-time
- 12.8.10. max-retry-time, min-retry-time
- 12.8.11. max-transfer-idle-in
- 12.8.12. max-transfer-idle-out
- 12.8.13. max-transfer-time-in
- 12.8.14. max-transfer-time-out
- 12.8.15. multi-master
- 12.8.16. notify
- 12.8.17. notify-source, notify-source-v6
- 12.8.18. provide-ixfr
- 12.8.19. request-ixfr
- 12.8.20. serial-query-rate
- 12.8.21. transfer-format
- 12.8.22. transfer-source, transfer-source-v6
- 12.8.23. transfers-in
- 12.8.24. transfers-per-ns
- 12.8.25. transfers-out
- 12.8.26. update-policy
- 12.8.27. use-alt-transfer-source
-
12.9. DNS BIND Operations
- 12.9.1. avoid-v4-udp-ports, avoid-v6-udp-ports
- 12.9.2. check-names
- 12.9.3. cleaning-interval
- 12.9.4. coresize
- 12.9.5. database
- 12.9.6. datasize
- 12.9.7. dialup
- 12.9.8. directory
- 12.9.9. dual-stack-server
- 12.9.10. dump-file
- 12.9.11. edns-udp-size
- 12.9.12. files
- 12.9.13. heartbeat-interval
- 12.9.14. hostname
- 12.9.15. interface-interval
- 12.9.16. lame-ttl
- 12.9.17. listen-on
- 12.9.18. listen-on-v6
- 12.9.19. match-mapped-addresses
- 12.9.20. max-cache-size
- 12.9.21. max-cache-ttl
- 12.9.22. max-ncache-ttl
- 12.9.23. memstatistics-file
- 12.9.24. pid-file
- 12.9.25. port
- 12.9.26. preferred-glue
- 12.9.27. querylog
- 12.9.28. recursing-file
- 12.9.29. server-id
- 12.9.30. stacksize
- 12.9.31. statistics-file
- 12.9.32. tcp-clients
- 12.9.33. tcp-listen-queue
- 12.9.34. version
- 12.9.35. zone-statistics
-
12.10. DNS BIND Query Statements
- 12.10.1. additional-from-auth, additional-from-cache
- 12.10.2. allow-query
- 12.10.3. allow-recursion
- 12.10.4. auth-nxdomain
- 12.10.5. blackhole
- 12.10.6. delegation-only
- 12.10.7. forward
- 12.10.8. forwarders
- 12.10.9. minimal-responses
- 12.10.10. query-source, query-source-v6
- 12.10.11. recursion
- 12.10.12. recursive-clients
- 12.10.13. root-delegation-only
- 12.10.14. rrset-order
- 12.10.15. sortlist
- 12.11. DNS BIND Security Statements
- 12.12. DNS BIND server Statements
- 12.13. DNS BIND view Statements
- 12.14. DNS BIND zone Statements
- 12.15. Summary
-
13. Zone File Reference
- 13.1. DNS Zone File Structure
- 13.2. DNS Directives
- 13.3. DNS Resource Records
-
13.4. Resource Record Descriptions
- 13.4.1. IPv4 Address (A) Record
- 13.4.2. Experimental IPv6 Address (A6) Record
- 13.4.3. IPv6 Address (AAAA) Record
- 13.4.4. AFS Database (AFSDB) Record
- 13.4.5. Address Prefix List (APL) Record
- 13.4.6. ATM Address (ATMA) Record
- 13.4.7. Certificate (CERT) Record
- 13.4.8. Canonical Name (CNAME) Record
- 13.4.9. Delegation of Reverse Names (DNAME) Record
- 13.4.10. DNSKEY Record
- 13.4.11. Delegation Signer (DS) Record
- 13.4.12. System Information (HINFO) Record
- 13.4.13. Integrated Services Digital Network (ISDN) Record
- 13.4.14. IPSEC Key (IPSECKEY) Record
- 13.4.15. Public Key (KEY) Record
- 13.4.16. Key Exchanger (KX) Record
- 13.4.17. Location (LOC) Record
- 13.4.18. Mailbox (MB) Record
- 13.4.19. Mail Group (MG) Record
- 13.4.20. Mailbox Renamed (MR) Record
- 13.4.21. Mailbox Mail List Information (MINFO) Record
- 13.4.22. Mail Exchange (MX) Record
- 13.4.23. Naming Authority Pointer (NAPTR) Record
- 13.4.24. Name Server (NS) Record
- 13.4.25. Network Service Access Point (NSAP) Record
- 13.4.26. Next Secure (NSEC) Record
- 13.4.27. Pointer (PTR) Record
- 13.4.28. X.400 to RFC 822 E-mail (PX) Record
- 13.4.29. Responsible Person (RP) Record
- 13.4.30. Resource Record Signature (RRSIG) Record
- 13.4.31. Route Through (RT) Record
- 13.4.32. Signature (SIG) Record
- 13.4.33. Start of Authority (SOA) Record
- 13.4.34. Services (SRV) Record
- 13.4.35. SSH Key Fingerprint (SSHFP) Record
- 13.4.36. Text (TXT) Record
- 13.4.37. Well-Known Service (WKS) Record
- 13.4.38. X.25 Address (X25) Record
- 13.4.39. Alternative Cryptographic Algorithms
- 13.5. User-Defined RRs
- 13.6. Summary
-
12. BIND Configuration Reference
-
5. Programming
-
14. BIND APIs and Resolver Libraries
- 14.1. BIND API Overview
- 14.2. The Simple Database API (sdb)
- 14.3. Resolver Libraries
-
14.4. The RES Library Set
- 14.4.1. Invoking the RES Library
- 14.4.2. The _res Structure
-
14.4.3. RES Library Functions
- 14.4.3.1. dn_comp Function
- 14.4.3.2. dn_expand Function
- 14.4.3.3. dn_skipname Function
- 14.4.3.4. ns_get16 Function
- 14.4.3.5. ns_get32 Function
- 14.4.3.6. ns_put16 Function
- 14.4.3.7. ns_put32 Function
- 14.4.3.8. res_init() Function
- 14.4.3.9. res_mkquery Function
- 14.4.3.10. res_query Function
- 14.4.3.11. res_search Function
- 14.4.3.12. res_send Function
- 14.5. Summary
- 15. DNS Messages and Records
-
14. BIND APIs and Resolver Libraries
-
6. Appendixes
-
A. Domain Name Registration
-
A.1. Answers
-
A.1.1.
-
A.1.1.1.
- A.1.1.1.1. What is a TLD (or gTLD or ccTLD or sTLD) domain name?
- A.1.1.1.2. Who is responsible for domain names?
- A.1.1.1.3. What TLDs are available?
- A.1.1.1.4. I thought www.example.com was my domain name.
- A.1.1.1.5. What is a URL (or URI or URN)?
- A.1.1.1.6. What is an SLD?
- A.1.1.1.7. How do I register a .com or .org or .net domain name?
- A.1.1.1.8. How do I register a domain in Malaysia (or any other country)?
- A.1.1.1.9. Can I register a domain name in any country?
- A.1.1.1.10. How do I register a US (.us) or state (for instance, ny.us) domain name?
- A.1.1.1.11. How do I register a Canadian (.ca) or provincial (for instance, bc.ca) domain name?
- A.1.1.1.12. If I register a .com, do I automatically register in every country?
- A.1.1.1.13. What happens when I register a domain name?
- A.1.1.1.14. What do the Primary and Secondary DNS server names do and why are they necessary?
- A.1.1.1.15. How do I change my domain name information?
- A.1.1.1.16. How do I register an .edu (or .mil or .gov or .int) name?
- A.1.1.1.17. How do I check my (or some else's) registration information?
- A.1.1.1.18. What is IANA and how does it relate to ICANN and the IETF?
- A.1.1.1.19. Who controls the .ARPA domain name?
-
A.1.1.1.
-
A.1.1.
-
A.1. Answers
- B. DNS RFCs
-
A. Domain Name Registration
Product information
- Title: Pro DNS and BIND
- Author(s):
- Release date: August 2005
- Publisher(s): Apress
- ISBN: 9781590594940
You might also like
book
Pro DNS and BIND 10
Pro DNS and BIND 10 guides you through the challenging array of features surrounding DNS with …
book
DNS & BIND Cookbook
The DNS & BIND Cookbook presents solutions to the many problems faced by network administrators responsible …
book
Concise Guide to DNS and BIND, The
The Concise Guide to DNS and BIND provides you with the technical depth and expert-level information …
book
Linux: Powerful Server Administration
Get hands-on recipes to make the most of Ubuntu Server, CentOS 7 Linux Server and RHEL …