alias naming by a newbie problem

Scott.Wiseman scott.wiseman at realestatenet.com
Mon Jun 12 19:12:27 UTC 2000


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