Forward all subdomains

Steven Lamb sheepdns at adiis.net
Mon Apr 3 19:14:25 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. 



More information about the bind-users mailing list