2 domains in 1 zone file...how?

Jamie P. Bontrager jamie at kctc.net
Thu Jan 25 18:05:32 UTC 2001


If I have domain-a.com and domain-b.com that both point to the same ip and
website, is there a way to combine zone files for both domains in bind 8?  I
cannot find any reference to this in the O'Reilly book on bind.

If someone is doing this, could you post a sample zone file if possible?

Would it look something like this...?

******************zone file**************************

; Data file of hostnames in this zone (domain-ab.zone).
;
????            IN      SOA     ns1.domain.com. root.ns1.domain.com. (
                2001012211  ; Serial
                10800       ; Refresh - 3 hours
                3600        ; Retry - 1 hour
                604800      ; Expire - 1 week
                86400       ; Minimum - 24 hours
           )
;
; Primary and secondary name servers for this zone
;
domain-a.com     IN      NS      ns1.domain.com.
domain-b.com     IN      NS      ns1.domain.com.
;
; SMTP mail exchanger
;
domain-a.com.   IN      MX      10 ns1.domain.com.
domain-b.com.   IN      MX      10 ns1.domain.com.
domain-a.com.   IN      MX      100 ns2.domain.com.
domain-b.com.   IN      MX      100 ns2.domain.com.
domain-a.com.   IN      A       192.192.192.1
domain-b.com.   IN      A       192.192.192.1
;
; Addresses for canonical names and aliases
localhost               IN      A               127.0.0.1
loopback                IN      CNAME           localhost
;
$ORIGIN domain-a.com.
www                     IN      A               192.192.192.1
;ftp                    IN      CNAME           www
;
$ORIGIN domain-b.com.
www                     IN      A               192.192.192.1
;ftp                    IN      CNAME           www
;

***************************************************************

Thanks,
§ Jamie P. Bontrager
§ Internet & PCS Services
§ KCTC.net




More information about the bind-users mailing list