Bv9ARM.ch04.html revision 575e532437cf7f203707765e21767db92fa1e480
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2291faee92ebb5cc9722cd3f22e499900a5a411fvboxsync>Advanced DNS Features</TITLE
9496b6f77d66eb89f088668752b8838d578d6e10vboxsyncNAME="GENERATOR"
9496b6f77d66eb89f088668752b8838d578d6e10vboxsyncCONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
9496b6f77d66eb89f088668752b8838d578d6e10vboxsyncTITLE="BIND 9 Administrator Reference Manual"
9496b6f77d66eb89f088668752b8838d578d6e10vboxsyncREL="PREVIOUS"
9496b6f77d66eb89f088668752b8838d578d6e10vboxsyncTITLE="Name Server Configuration"
4b9d6701570cb98fd36e209314239d104ec584d3vboxsyncTITLE="The BIND 9 Lightweight Resolver"
4b9d6701570cb98fd36e209314239d104ec584d3vboxsyncCLASS="chapter"
4b9d6701570cb98fd36e209314239d104ec584d3vboxsyncBGCOLOR="#FFFFFF"
4b9d6701570cb98fd36e209314239d104ec584d3vboxsyncTEXT="#000000"
4b9d6701570cb98fd36e209314239d104ec584d3vboxsyncLINK="#0000FF"
4b9d6701570cb98fd36e209314239d104ec584d3vboxsyncVLINK="#840084"
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncALINK="#0000FF"
ef1c003b45b1550236f47a2da7eea2e25f224b41vboxsyncCLASS="NAVHEADER"
ef1c003b45b1550236f47a2da7eea2e25f224b41vboxsyncSUMMARY="Header navigation table"
0486df2e670fa5d25ca947fd92b19dd54229692dvboxsyncWIDTH="100%"
2c18e977ea3600677b8c58c9de0caa61792ba428vboxsyncCELLPADDING="0"
95714accc37694e6f4ae3c646dd01f3827c3d260vboxsyncCELLSPACING="0"
95714accc37694e6f4ae3c646dd01f3827c3d260vboxsyncALIGN="center"
95714accc37694e6f4ae3c646dd01f3827c3d260vboxsync>BIND 9 Administrator Reference Manual</TH
95714accc37694e6f4ae3c646dd01f3827c3d260vboxsyncALIGN="left"
6cf17994e7631a6e8711c17848689c2064d5ccacvboxsyncVALIGN="bottom"
95714accc37694e6f4ae3c646dd01f3827c3d260vboxsyncACCESSKEY="P"
a2f6500ea77004e215d6fc8fcdab25b1d4d1ad3dvboxsyncALIGN="center"
0c8b774aca1168c2007424a49f6fa159fc23e42bvboxsyncVALIGN="bottom"
a2f6500ea77004e215d6fc8fcdab25b1d4d1ad3dvboxsyncALIGN="right"
0c8b774aca1168c2007424a49f6fa159fc23e42bvboxsyncVALIGN="bottom"
1826861f34e9be70b29cd5e1a6038caf9fbf37bevboxsyncACCESSKEY="N"
f2ba84c335a6e7ac91f69863ff51b10c65c9d40fvboxsyncALIGN="LEFT"
b459362b1c9b5ce5e6bf4ceb32ffe1294c08be07vboxsyncCLASS="chapter"
f2ba84c335a6e7ac91f69863ff51b10c65c9d40fvboxsync>Chapter 4. Advanced DNS Features</H1
0c8b774aca1168c2007424a49f6fa159fc23e42bvboxsync>Table of Contents</B
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncHREF="Bv9ARM.ch04.html#dynamic_update"
f2ba84c335a6e7ac91f69863ff51b10c65c9d40fvboxsync>Dynamic Update</A
41e3b5da61b49017cb647f2f32a231c524fc370avboxsyncHREF="Bv9ARM.ch04.html#incremental_zone_transfers"
41e3b5da61b49017cb647f2f32a231c524fc370avboxsync>Incremental Zone Transfers (IXFR)</A
f2ba84c335a6e7ac91f69863ff51b10c65c9d40fvboxsync>Split DNS</A
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync>IPv6 Support in <ACRONYM
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsyncCLASS="acronym"
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsync>BIND</ACRONYM
a2f6500ea77004e215d6fc8fcdab25b1d4d1ad3dvboxsyncCLASS="sect1"
a2f6500ea77004e215d6fc8fcdab25b1d4d1ad3dvboxsyncCLASS="sect1"
a2f6500ea77004e215d6fc8fcdab25b1d4d1ad3dvboxsyncNAME="notify"
9c59bcefe2993070fafaf0d6cee9673f48479128vboxsync>4.1. Notify</A
a2f6500ea77004e215d6fc8fcdab25b1d4d1ad3dvboxsyncCLASS="acronym"
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsync>DNS</ACRONYM
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsync> NOTIFY is a mechanism that allows master
a2f6500ea77004e215d6fc8fcdab25b1d4d1ad3dvboxsyncservers to notify their slave servers of changes to a zone's data. In
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsyncresponse to a <B
9c59bcefe2993070fafaf0d6cee9673f48479128vboxsyncCLASS="command"
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsync> from a master server, the
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsyncslave will check to see that its version of the zone is the
8f7119688865a134053bd580972655ce2b8954b3vboxsynccurrent version and, if not, initiate a zone transfer.</P
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsyncCLASS="acronym"
a2f6500ea77004e215d6fc8fcdab25b1d4d1ad3dvboxsync>DNS</ACRONYM
a2f6500ea77004e215d6fc8fcdab25b1d4d1ad3dvboxsyncFor more information about
a2f6500ea77004e215d6fc8fcdab25b1d4d1ad3dvboxsyncCLASS="command"
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsync>, see the description of the
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsyncCLASS="command"
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsync> option in <A
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsyncHREF="Bv9ARM.ch06.html#boolean_options"
1826861f34e9be70b29cd5e1a6038caf9fbf37bevboxsync>Section 6.2.16.1</A
1826861f34e9be70b29cd5e1a6038caf9fbf37bevboxsyncthe description of the zone option <B
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsyncCLASS="command"
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsync>also-notify</B
01f38d7bedc71f105edc6e67f8cbb9a0bf325442vboxsyncHREF="Bv9ARM.ch06.html#zone_transfers"
8f7119688865a134053bd580972655ce2b8954b3vboxsync>Section 6.2.16.7</A
62e5c2cfabb91397405d7bfe7908ec2b3a483831vboxsyncCLASS="command"
2c18e977ea3600677b8c58c9de0caa61792ba428vboxsyncprotocol is specified in RFC 1996.
2c18e977ea3600677b8c58c9de0caa61792ba428vboxsyncCLASS="sect1"
01f38d7bedc71f105edc6e67f8cbb9a0bf325442vboxsyncCLASS="sect1"
01f38d7bedc71f105edc6e67f8cbb9a0bf325442vboxsyncNAME="dynamic_update"
01f38d7bedc71f105edc6e67f8cbb9a0bf325442vboxsync>4.2. Dynamic Update</A
8f7119688865a134053bd580972655ce2b8954b3vboxsync>Dynamic Update is a method for adding, replacing or deleting
8f7119688865a134053bd580972655ce2b8954b3vboxsync records in a master server by sending it a special form of DNS
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync messages. The format and meaning of these messages is specified
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync in RFC 2136.</P
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync>Dynamic update is enabled on a zone-by-zone basis, by
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync including an <B
8f7119688865a134053bd580972655ce2b8954b3vboxsyncCLASS="command"
1826861f34e9be70b29cd5e1a6038caf9fbf37bevboxsync>allow-update</B
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsyncCLASS="command"
ad27e1d5e48ca41245120c331cc88b50464813cevboxsync>update-policy</B
1826861f34e9be70b29cd5e1a6038caf9fbf37bevboxsync> clause in the
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsyncCLASS="command"
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync> statement.</P
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync>Updating of secure zones (zones using DNSSEC) follows
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync RFC 3007: RRSIG and NSEC records affected by updates are automatically
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync regenerated by the server using an online zone key.
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync Update authorization is based
ad27e1d5e48ca41245120c331cc88b50464813cevboxsync on transaction signatures and an explicit server policy.</P
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsyncCLASS="sect2"
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsyncCLASS="sect2"
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsyncNAME="journal"
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync>4.2.1. The journal file</A
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync>All changes made to a zone using dynamic update are stored
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync in the zone's journal file. This file is automatically created
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync by the server when when the first dynamic update takes place.
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync The name of the journal file is formed by appending the extension
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsyncCLASS="filename"
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync> to the name of the corresponding zone
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync file unless specifically overridden. The journal file is in a
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync binary format and should not be edited manually.</P
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync>The server will also occasionally write ("dump")
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync the complete contents of the updated zone to its zone file.
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync This is not done immediately after
693d9f3305eb4a4684a6613b8a41a6fa150cc101vboxsync each dynamic update, because that would be too slow when a large
933606e7609b250f207a2f97112f8388f88998c1vboxsync zone is updated frequently. Instead, the dump is delayed by
8f7119688865a134053bd580972655ce2b8954b3vboxsync up to 15 minutes, allowing additional updates to take place.</P
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsync>When a server is restarted after a shutdown or crash, it will replay
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsync the journal file to incorporate into the zone any updates that took
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync place after the last zone dump.</P
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsync>Changes that result from incoming incremental zone transfers are also
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsync journalled in a similar way.</P
1ace73711fa06807748eff26632c7273a1f7c2dbvboxsync>The zone files of dynamic zones cannot normally be edited by
1ace73711fa06807748eff26632c7273a1f7c2dbvboxsync hand because they are not guaranteed to contain the most recent
1ace73711fa06807748eff26632c7273a1f7c2dbvboxsync dynamic changes - those are only in the journal file.
1ace73711fa06807748eff26632c7273a1f7c2dbvboxsync The only way to ensure that the zone file of a dynamic zone
1ace73711fa06807748eff26632c7273a1f7c2dbvboxsync is up to date is to run <B
1ace73711fa06807748eff26632c7273a1f7c2dbvboxsyncCLASS="command"
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsync>rndc stop</B
1ace73711fa06807748eff26632c7273a1f7c2dbvboxsync>If you have to make changes to a dynamic zone
1ace73711fa06807748eff26632c7273a1f7c2dbvboxsync manually, the following procedure will work: Disable dynamic updates
5f9ec43969b9ba00f6c2d03bafc9ac36a41c95e1vboxsync to the zone using
1ace73711fa06807748eff26632c7273a1f7c2dbvboxsyncCLASS="command"
5f9ec43969b9ba00f6c2d03bafc9ac36a41c95e1vboxsync>rndc freeze <VAR
5f9ec43969b9ba00f6c2d03bafc9ac36a41c95e1vboxsyncCLASS="replaceable"
5f9ec43969b9ba00f6c2d03bafc9ac36a41c95e1vboxsync This will also remove the zone's <TT
5f9ec43969b9ba00f6c2d03bafc9ac36a41c95e1vboxsyncCLASS="filename"
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsync and update the master file. Edit the zone file. Run
e12a6ea07ddb7a02b3575e78b24960e13f42bf4cvboxsyncCLASS="command"
9ced981a0263f6280ccbf5dc64c0e81fbe4a2fdavboxsync>rndc unfreeze <VAR
9ced981a0263f6280ccbf5dc64c0e81fbe4a2fdavboxsyncCLASS="replaceable"
1d258b8772ee104b5fab3d1743eabc2f5cfe2fa4vboxsync to reload the changed zone and re-enable dynamic updates.</P
1d258b8772ee104b5fab3d1743eabc2f5cfe2fa4vboxsyncCLASS="sect1"
53e1c27c7564c45ad0b92676ddea561591a3e869vboxsyncCLASS="sect1"
53e1c27c7564c45ad0b92676ddea561591a3e869vboxsyncNAME="incremental_zone_transfers"
1d258b8772ee104b5fab3d1743eabc2f5cfe2fa4vboxsync>4.3. Incremental Zone Transfers (IXFR)</A
1d258b8772ee104b5fab3d1743eabc2f5cfe2fa4vboxsync>The incremental zone transfer (IXFR) protocol is a way for
1d258b8772ee104b5fab3d1743eabc2f5cfe2fa4vboxsyncslave servers to transfer only changed data, instead of having to
1d258b8772ee104b5fab3d1743eabc2f5cfe2fa4vboxsynctransfer the entire zone. The IXFR protocol is specified in RFC
1d258b8772ee104b5fab3d1743eabc2f5cfe2fa4vboxsync1995. See <A
53e1c27c7564c45ad0b92676ddea561591a3e869vboxsyncHREF="Bv9ARM.ch09.html#proposed_standards"
53e1c27c7564c45ad0b92676ddea561591a3e869vboxsync>Proposed Standards</A
1826861f34e9be70b29cd5e1a6038caf9fbf37bevboxsync>When acting as a master, <ACRONYM
1d258b8772ee104b5fab3d1743eabc2f5cfe2fa4vboxsyncCLASS="acronym"
1826861f34e9be70b29cd5e1a6038caf9fbf37bevboxsync>BIND</ACRONYM
1826861f34e9be70b29cd5e1a6038caf9fbf37bevboxsyncsupports IXFR for those zones
1826861f34e9be70b29cd5e1a6038caf9fbf37bevboxsyncwhere the necessary change history information is available. These
53e1c27c7564c45ad0b92676ddea561591a3e869vboxsyncinclude master zones maintained by dynamic update and slave zones
53e1c27c7564c45ad0b92676ddea561591a3e869vboxsyncwhose data was obtained by IXFR. For manually maintained master
674c51d0cb8c72a2852b315b70f76d11d82b20f5vboxsynczones, and for slave zones obtained by performing a full zone
674c51d0cb8c72a2852b315b70f76d11d82b20f5vboxsynctransfer (AXFR), IXFR is supported only if the option
674c51d0cb8c72a2852b315b70f76d11d82b20f5vboxsyncCLASS="command"
674c51d0cb8c72a2852b315b70f76d11d82b20f5vboxsync>ixfr-from-differences</B
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsyncCLASS="userinput"
53e1c27c7564c45ad0b92676ddea561591a3e869vboxsync>When acting as a slave, <ACRONYM
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsyncCLASS="acronym"
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsync>BIND</ACRONYM
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsyncattempt to use IXFR unless
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsyncit is explicitly disabled. For more information about disabling
6e3cc82d5d5effda92c9fec18b870d54386f99favboxsyncIXFR, see the description of the <B
6e3cc82d5d5effda92c9fec18b870d54386f99favboxsyncCLASS="command"
e27467c77543dda00047807bdd69b62f1cd50feevboxsync>request-ixfr</B
771761cda2c81e899526a0dce22c8cd2510fff82vboxsyncCLASS="command"
7bff28e0cedd8656acd24b420759649184d8cf00vboxsync> statement.</P
f2ba84c335a6e7ac91f69863ff51b10c65c9d40fvboxsyncCLASS="sect1"
8f7119688865a134053bd580972655ce2b8954b3vboxsyncCLASS="sect1"
bc8ea11359bbfdee1aa1a32821d263292d4a8feevboxsyncNAME="AEN767"
bc8ea11359bbfdee1aa1a32821d263292d4a8feevboxsync>4.4. Split DNS</A
bc8ea11359bbfdee1aa1a32821d263292d4a8feevboxsync>Setting up different views, or visibility, of the DNS space to
bc8ea11359bbfdee1aa1a32821d263292d4a8feevboxsyncinternal and external resolvers is usually referred to as a <SPAN
bc8ea11359bbfdee1aa1a32821d263292d4a8feevboxsyncCLASS="emphasis"
bc8ea11359bbfdee1aa1a32821d263292d4a8feevboxsyncCLASS="emphasis"
bc8ea11359bbfdee1aa1a32821d263292d4a8feevboxsync> setup. There are several reasons an organization
bc8ea11359bbfdee1aa1a32821d263292d4a8feevboxsyncwould want to set up its DNS this way.</P
bc8ea11359bbfdee1aa1a32821d263292d4a8feevboxsync>One common reason for setting up a DNS system this way is
bc8ea11359bbfdee1aa1a32821d263292d4a8feevboxsyncto hide "internal" DNS information from "external" clients on the
bc8ea11359bbfdee1aa1a32821d263292d4a8feevboxsyncInternet. There is some debate as to whether or not this is actually useful.
bc8ea11359bbfdee1aa1a32821d263292d4a8feevboxsyncInternal DNS information leaks out in many ways (via email headers,
8f7119688865a134053bd580972655ce2b8954b3vboxsyncfor example) and most savvy "attackers" can find the information
bc8ea11359bbfdee1aa1a32821d263292d4a8feevboxsyncthey need using other means.</P
8f7119688865a134053bd580972655ce2b8954b3vboxsync>Another common reason for setting up a Split DNS system is
bc8ea11359bbfdee1aa1a32821d263292d4a8feevboxsyncto allow internal networks that are behind filters or in RFC 1918
8f7119688865a134053bd580972655ce2b8954b3vboxsyncspace (reserved IP space, as documented in RFC 1918) to resolve DNS
bc8ea11359bbfdee1aa1a32821d263292d4a8feevboxsyncon the Internet. Split DNS can also be used to allow mail from outside
8f7119688865a134053bd580972655ce2b8954b3vboxsyncback in to the internal network.</P
bc8ea11359bbfdee1aa1a32821d263292d4a8feevboxsync>Here is an example of a split DNS setup:</P
bc8ea11359bbfdee1aa1a32821d263292d4a8feevboxsync>Let's say a company named <SPAN
9b5e4e8f5c00e8cd2289a73d173c96e551c79397vboxsyncCLASS="emphasis"
f2ba84c335a6e7ac91f69863ff51b10c65c9d40fvboxsyncCLASS="emphasis"
f2ba84c335a6e7ac91f69863ff51b10c65c9d40fvboxsync>Example, Inc.</I
f2ba84c335a6e7ac91f69863ff51b10c65c9d40fvboxsyncCLASS="literal"
d95b7fbc09277b5375b98812fa76b08c6ce8535cvboxsynchas several corporate sites that have an internal network with reserved
f2ba84c335a6e7ac91f69863ff51b10c65c9d40fvboxsyncInternet Protocol (IP) space and an external demilitarized zone (DMZ),
d95b7fbc09277b5375b98812fa76b08c6ce8535cvboxsyncor "outside" section of a network, that is available to the public.</P
f2ba84c335a6e7ac91f69863ff51b10c65c9d40fvboxsyncCLASS="emphasis"
97674677e4f2aeae576c39f966568dd664ba7979vboxsyncCLASS="emphasis"
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsync>Example, Inc.</I
77c85c820fe4467a0856134e0c9e5c5790cd847evboxsync> wants its internal clients
72f66530e1bf87aa6894a5f55f1b4d36caa5761fvboxsyncto be able to resolve external hostnames and to exchange mail with
97674677e4f2aeae576c39f966568dd664ba7979vboxsyncpeople on the outside. The company also wants its internal resolvers
97674677e4f2aeae576c39f966568dd664ba7979vboxsyncto have access to certain internal-only zones that are not available
7bff28e0cedd8656acd24b420759649184d8cf00vboxsyncat all outside of the internal network.</P
HREF="Bv9ARM.ch03.html#sample_configuration"
zone "site1.example.com" { // sample master zone
zone "site2.example.com" { // sample slave zone
zone "site1.internal" {
zone "site2.internal" {
zone "site1.example.com" { // sample slave zone
zone "site2.example.com" {
HREF="Bv9ARM.ch06.html#dynamic_update_policies"
that the tools shipped with BIND 9.2.x and earlier are not compatible
HREF="Bv9ARM.ch09.html#ipv6addresses"
> $ORIGIN example.com.
> $ORIGIN 0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa.
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0 14400 IN PTR host.example.com.
HREF="Bv9ARM.ch03.html"
HREF="Bv9ARM.html"
HREF="Bv9ARM.ch05.html"