Multiple zones share same DB?

David Botham dns at botham.net
Mon Feb 3 03:56:57 UTC 2003




> -----Original Message-----
> From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org] On
> Behalf Of Lee M Dobson
> Sent: Monday, February 03, 2003 10:21 AM
> To: bind-users at isc.org
> Subject: Multiple zones share same DB?
> 
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> 
> 
> Greetings All,
> 
> Is it possible to configure a BIND DB record for multiple zones?.
(e.g;
> have abc.com and xyz.com share the same db record)?  I thought this
> was possible, possibly just by having multiple zone $ORIGIN in the DB
> record, however I could be wrong.  Is this possible or MUST each
> zone have its own DB record?
> 
> Any feedback and or configuration examples would be appreciated



Yes, you can.  Here is an example of a zone db file that would work for
any number of zones being mastered by the same name server:



@	IN	SOA	ns1.domain.com.	admin.domain.com. (
			2003020200
			28800
			14400
			604800
			86400)

@	IN	NS	ns1.domain.com.
@	IN	NS	ns2.domain.com.

@	IN	MX	mail.domain.com.
@	IN	MX	mail2.domain.com.


@	IN	A	10.200.5.43
ns1	IN	A	192.168.1.1
ns2	IN	A	192.168.1.2
mail	IN	A	192.168.1.3
mail2	IN	A	192.168.1.4

www	IN	CNAME	@



Notice that "@" is a substitute for the ORIGIN, which unless otherwise
explicitly changed, is the name of the zone as specified in the "zone"
statement of named.conf.  Therefore, the above zone db file could be
used for any number of domains that contain the same information.  Some
companies need to have hundreds of domains contain the same information
due to the fact that they have registered every possible mis-spelling of
their domain name.  Although, I don't know why I am telling you this, as
you already have a reason to use a zone db like the one above...



Thanks,


Dave...




> 
> Thanks,
> 
> --
> Sincerely,
> Lee M Dobson,
> Jr. Systems Administrator,
> Alabanza Corporation.
> mailto:LDobson at alabanza.com
> 410-779-1400, Ext, 3670
> 
> 
> 
> 
> 
> -- Binary/unsupported file stripped by Ecartis --
> -- Type: text/x-vcard
> -- File: ldobson.vcf
> -- Desc: Card for Lee M Dobson
> 




More information about the bind-users mailing list