Best way to handle multiple zones

Curt Sampson cjs at cynic.net
Tue Aug 28 00:47:12 UTC 2007


On Mon, 27 Aug 2007, Ryan McCain wrote:

> I have 3 zones that need to stay in sync. For example
> host1.domain1.com needs to be the same as host1.domain2.com and
> host1.domain3.com. What is the best way to handle this?

Is it just parts of zones that need to stay in sync, or are the zones
identical? If the latter, use the same generic zone file for all of
them (one without a $ORIGIN directive), with separate zone entries in
named.conf each using that zone file on the master. The master zone file
looks something like this:

; no $ORIGIN as this is used for several different domains
$TTL 15m

@               IN SOA  master.example.com. hostmaster.example.com. (
                                 100     ; serial
                                 1200    ; refresh (20 minutes)
                                 600     ; retry (10 minutes)
                                 3600000 ; expire 41 days 16 hours
                                 900 )   ; min ttl

                 NS              ns1.example.com.
                 NS              ns2.example.com.
                 NS              ns3.example.com.
                 NS              ns4.example.com.

                 A               10.2.3.4

www             CNAME           @

cjs
-- 
Curt Sampson         <cjs at cynic.net>         +81 90 7737 2974
              http://www.starling-software.com
The power of accurate observation is commonly called cynicism
by those who have not got it.    --George Bernard Shaw



More information about the bind-users mailing list