Forward all subdomains
Steven Lamb
sheepdns at adiis.net
Tue Apr 4 13:50:00 UTC 2006
I guess the part that I forgot to mention is that BBB.com is not under
my control. And I will need to be able to reserve some sub-domains for
my own control. Is this something that is not possible to setup? It
seems relatively simple to implement this kind of functionality in the
context of a DNS I am surprised that it doesn't already exist.
Thanks for the response.
Steve Lamb
-----Original Message-----
From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org] On
Behalf Of Mark Andrews
Sent: Monday, April 03, 2006 6:54 PM
To: Steven Lamb
Cc: bind-users at isc.org
Subject: Re: Forward all subdomains
> I am running bind 9 and have run into a strange situation.
>
> I have a domain setup and would like to forward all of the sub domains
> requests for this domain to the same sub domain of another domain
>
> As described below
>
> @ IN SOA ns1.AAA.net. administrator.AAA.net. (
> 2006033154 ; serial
> 3600 ; refresh
> 600 ; retry
> 86400 ; expire
> 3600 ; default_ttl
> )
> www 3600 IN A 254.254.36.5
> @ IN MX 0 ms1.AAA.net.
> @ IN MX 0 ms2.AAA.net.
> @ IN NS ns1.AAA.net.
> @ IN NS ns2.AAA.net.
> @ IN A 254.254.36.5
> admin 3600 IN CNAME www.BBB.com.
> *.CCC.com. 3600 IN CNAME *.BBB.com.
>
>
> I want admin.CCC.com to go to www.BBB.com. However I want foo.CCC.com
to
> go to foo.BBB.com
> As well as bar.CCC.com to go to bar.CCC.com. And any other domains not
> mapped above.
>
> Any ideas on how to accomplish something like this.
>
> I have tried several things but I am lost in the fog. Obviously the
> entry above forwards any request to anything.CCC.com to *.BBB.com
which
> is not quite what I am looking for.
CCC.com. DNAME BBB.com.
Note admin.CCC.com cannot be directly mapped to www.BBB.com with
the above DNAME and no subdomains of a node containing a DNAME
are
allowed. You will need to do the mapping under BBB.com.
admin.BBB.com. CNAME www.BBB.com.
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews at isc.org
More information about the bind-users
mailing list