Forward all subdomains
Mark_Andrews at isc.org
Mon Apr 3 23:54:10 UTC 2006
> 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