alias naming by a newbie problem

Kevin Darcy kcd at daimlerchrysler.com
Mon Jun 12 19:29:28 UTC 2000


That's what I suggested -- or tried to suggest -- in my last paragraph. The
prerequisites for the "shared zonefile" approach are:
1. no $ORIGIN's.
2. standalone references to the zone origin need to be "@"
3. references to names *in* the zone, e.g. "mail.santee-homes.com", need to be
unqualified, i.e. just "mail", so that the domain origin will be implicitly
appended to them.

Since you already seemed to be okay on (3), I just mentioned the other 2
prerequisites.

Be aware, however, that this doesn't "alias" the zone. It just creates another
zone instance from the same zonefile. Do this only if *all* the data under the
domain name, e.g. "mail" etc. is intended to be *identical* between the 2
zones. In the zone files you posted earlier, there were "associate
subdomains" in one zone, but not in the other. This leads me to believe that
sharing the zone file would not be appropriate for your situation. If you
shared the zonefile, then the "associate subdomains" would appear in
*both* zones.


- Kevin

Scott.Wiseman wrote:

> I read it again out loud to another mis guy..
> I came up with another thought...
>
> in the named.boot file
>
> should I do this
>
> primary 91901realestate.com     db.santee-homes
> primary santee-homes            db.santee-homes
>
> and put the @ sign in the db.santee-homes
>
> Scott
>
> -----Original Message-----
> From: Kevin Darcy [mailto:kcd at daimlerchrysler.com]
> Sent: Friday, June 09, 2000 5:29 PM
> To: 'bind-users at isc.org'
> Subject: Re: alias naming by a newbie problem
>
> A CNAME cannot have non-CNAME records associated with it. Either the name
> aliases to another name or it doesn't; you can't have it both ways. Look at
> your zone file: you have an SOA, an NS (shouldn't there be at least
> *two* NS'es, by the way?) and an A record all associated with the name
> "91901realestate.com". Because of the existence of those other records, the
> CNAME is illegal.
>
> Simple solution: instead of a CNAME, just replace the contents of the
> "91901realestate.com" A record with the address of the "santee-homes.com"
> A record.
>
> Additionally, if you want "91901realestate.com" and "santee-homes.com" to
> always have *identical* information, and you want to save yourself a little
> maintenance, then you could use the same zone file for both zones, as long
> as you eliminate the $ORIGIN directives and use "@" as the left-hand-side
> of the SOA record. That way, all of the names are "relative", and named
> will interpret the same labels as "91901realestate.com" names when it loads
> the file as the "91901realestate.com" zone, and "santee-homes.com" names
> when it loads the file as the "santee-homes.com" zone.
>
> - Kevin
>
> Scott.Wiseman wrote:
>
> > I want the 91901realestate.com to point to santee-homes.com
> >
> > what is the problem?
> >
> > Help
> >
> > ;
> > ;    File:      db.zoneinfo for accorddanville.com
> > ;    Purpose:   This file establishes the name/address information
> > ;               for this zone.  You will have to fill out the actual
> > ;               information for your specific zone in the format shown
> > ;               in the comments.
> > ;
> > ;
> > $ORIGIN com.
> > 91901realestate         IN      SOA     remax.remaxhost.com.
> > webmaster.remaxhost.com. (
> >                         2000011200      ;       Serial Number
> >                           10800 ;       Domain Refresh Interval
> >                            3600 ;       Failed Query Retry Interval
> >                          604800 ;       Domain Cache Expiration Interval
> >                            3600 ;)
> >                         IN      NS      remax.remaxhost.com.
> >                         IN      A       216.184.208.175
> >
> > ; Host Names
> > $ORIGIN 91901realestate.com.
> > localhost               IN A    127.0.0.1
> > www                     IN A    216.184.208.175
> > ;
> > ;        Canonical Name Records
> >
> > 91901realestate.com     IN      CNAME   santee-homes.com.
> >
> > ;       End of File
> >
> > ________________________________________________________________________






More information about the bind-users mailing list