cname records from one domain to another
Barry Margolin
barmar at genuity.net
Fri Oct 26 17:58:45 UTC 2001
In article <9rc75n$fo1 at pub3.rc.vix.com>,
GovernorKreep <governorkreep at yahoo.com> wrote:
>
>I have this:
>
>zone xxx.com:
>www IN A 1.2.3.4
>xxx.com. IN A 1.2.3.4
I'd do:
www IN CNAME xxx.com.
xxx.com. IN A 1.2.3.4
>What I want to have also is this:
>
>zone yyy.com:
>www IN CNAME xxx.com.
>yyy.com. IN CNAME xxx.com.
>
>But I get errors about cname and other data. I understand that the
>better way to do this is to have A records to 1.2.3.4 for yyy.com, but
>the IP addresses for these change somewhat frequently and when they
>do, I have to change it in hundreds of different zones instead of in
>just one.
>How is the best way to deal with this?
Write a script that checks the address of xxx.com and updates all the other
zones when it changes, and run it as a cron job. You can't make the zone
name be a CNAME.
--
Barry Margolin, barmar at genuity.net
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
More information about the bind-users
mailing list