multiple domain configuration

Danny Mayer mayer at gis.net
Sun Nov 24 03:04:03 UTC 2002


At 11:48 AM 11/14/02, Joshua Kuo wrote:

>i need to configure two domains, namely, ontariocc.com and
>ontariocvb.com, and to have the two basically mirror each other. in other
>words, when i access foo.ontariocc.com, it should point to
>foo.ontariocvb.com.

Just use the same file for both zones and make everything
relative in the zone file.

>below is the answer i find in the official news group FAQ, but it
>doesn't mention _where_ to put the statement in.
>
>================================================================
>Question 5.8.  Multiple Domain configuration
>
>Date: Fri Dec  2 15:40:49 EST 1994
>
>If you want to have multiple domain names pointing to the same
>destination, such as:
>
>       ftp ftp.biff.com connects user to -> ftp.biff.com
>       ftp ftp.fred.com connects user to -> ftp.biff.com
>       ftp ftp.bowser.com connects user to -> ftp.biff.com
>
>You may do this by using CNAMEs:
>
>       ftp.bowser.com.         IN      CNAME ftp.biff.com.
>
>You can also do the same thing with multiple A records.
>================================================================
>
>
>what i have is like this:
>
>zone "ontariocc.com" {
>   type master;
     file "ontarioall.com.db";
};

zone "ontariocvb.com" {
   type master;
   file "ontarioall.com.db";
};

ontarioall.com.db:
>
>   $TTL 86400
>   @       IN      SOA     dns1.partynetworks.net. dns.partynetworks.net. (
>                           0211140001      ; Serial
>                           28800           ; Refresh
>                           7200            ; Retry
>                           604800          ; Expire
>                           86400)          ; Minimum TTL
>
>   @   NS  dns1.partynetworks.net.
>       NS  dns2.partynetworks.net.
>       NS  dns3.partynetworks.net.
>
>
>   @                       A           216.132.24.85
>                           MX 30       mail.ontariocc.com.
>   www                     CNAME      @
>   mail                    A           12.3.208.130
>};
>
>zone "ontariocvb.com" {
>   type master;
>
>
>what am i doing wrong? or can i ignore these error messages and do a ndc
>reload (i am running BIND 8.3.3) and it will be fine?

Upgrade to 8.3.4 or BIND 9.2.1 immediately. See
http://www.isc.org/products/BIND/bind-security.html

Danny



More information about the bind-users mailing list