alias naming by a newbie problem

Scott.Wiseman scott.wiseman at realestatenet.com
Mon Jun 12 18:51:05 UTC 2000



Is this what you are talking about...there are 2 files db.santee-homes(1st)
and 91901realestate(2nd)
-------------------------------------------------


;    File:      db.zoneinfo for santee-homes.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.
santee-homes	IN SOA remax.remaxhost.com. swiseman at realestatenet.com. (
			1999051800	; Serial(yyyymmddnn)
			10800		; Refresh(3h)
			1800		; Retry(1h)
			604800		; Expire(1wk)
			5		; Min TTL(1d)
			)
; Name Servers
		IN NS   remax.remaxhost.com.
		IN A 	216.184.208.175
		IN MX 	10 mail.remaxhost.com.
; Host Names
$ORIGIN santee-homes.com.
localhost	IN A	127.0.0.1
www		IN A	216.184.208.175
mail		IN A    216.184.208.175



; associate subdomains
                     	IN	A	216.184.208.175
alangill             	IN	A	216.184.208.175
bhowland             	IN	A	216.184.208.175
bstewart             	IN	A	216.184.208.175
dneiss               	IN	A	216.184.208.175
gwhalen              	IN	A	216.184.208.175
jdavidson            	IN	A	216.184.208.175
kbattee              	IN	A	216.184.208.175
kroesch              	IN	A	216.184.208.175
mstewart             	IN	A	216.184.208.175
pdavidson            	IN	A	216.184.208.175
rlewis               	IN	A	216.184.208.175
sbowers              	IN	A	216.184.208.175
;

-------------------------------------------------

;
;    File:      db.zoneinfo for 91901realestate.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.
swiseman.realestatenet.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	santee-homes.com





;	End of File


------------------------------------------------


-----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