CNAME setup
Barry Margolin
barmar at alum.mit.edu
Sun Aug 28 00:40:11 UTC 2005
In article <der0cf$ebc$1 at sf1.isc.org>, Jim Pazarena <bind at ccstores.com>
wrote:
> I have tried to set a virtual domain like:
>
> ;
> ; authoritative data for lifeboatscanada.com
> ;
>
> $INCLUDE qcislands.soa
>
> $ORIGIN lifeboatscanada.com.
>
> lifeboatscanada.com. IN A 64.69.87.111
> www IN A 64.69.87.111
> ftp IN A 64.69.87.111
>
> and this seems to works OK, but when I try to "CNAME" these entries, like:
>
>
> lifeboatscanada.com. IN CNAME www.qcislands.net
> www IN CNAME www.qcislands.net
> ftp IN CNAME www.qcislands.net
>
> doesn't work... the master re-load complains "CNAME and other data"
You can't use a CNAME for the zone name itself. A name cannot be both
an alias and also have records of its own, and the zone name is required
to have SOA and NS records of its own. Ergo, it can't also be an alias.
So you should do something like:
lifeboatscanada.com. IN A 64.69.87.111
www IN CNAME www.qcislands.net.
ftp IN CNAME www.qcislands.net.
Also, don't forget the "." at the ends of "www.qcislands.net.".
--
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
More information about the bind-users
mailing list