There are two things that you can do. One is to create CNAME records for each node in thisdomain.com pointing to the equivalent-host.otherdomai
Main Topics
Browse All TopicsHow do I configure my DNS server (bind) to redirect all requests to *.thisdomain.com to *.otherdomain.com.
otherdomain.com is not on my server.
I want to do something like this:
$TTL 3600
@ IN SOA ns1.mydnsserver.com. root.mydnsserver.com. (
1 ; serial
3600 ; refresh
600 ; retry
86400 ; expire
3600 ) ; min ttl
;
NS ns1.mydnsserver.com.
NS ns2.mydnsserver.com.
MX 10 mail
A otherdomain.com.
;
localhost A 127.0.0.1
www A www.otherdomain.com.
ftp A ftp.otherdomain.com.
* A *.otherdomain.com.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
An example of using CNAME records would be:
NS ns1.mydnsserver.com.
NS ns2.mydnsserver.com.
MX 10 mail.otherdomain.com.
www IN CNAME www.otherdomain.com.
ftp IN CNAME ftp.otherdomain.com.
xx IN CNAME yy.otherdomain.com.
...
You can't, as far as I know, use anything in named.conf to change the resolution of names in a zone. That can only be done with CNAME records, or by changing what DNS server is authoritative for the domain.
Hello jlevie,
In fact, as of BIND 9.0 a new RR (Resource Record) type (DNAME) has been introduced.
DNAME records do just what acerola needs. For example
###
$TTL 5M
$ORIGIN mydomain.com
test DNAME otherdomain.com.
###
In this case, for something like wwww.test.mydomain.com a CNAME to wwww.otherdomain.com would be synthesized and returned as an answer to a query. After that, the name would yield the ip-address of wwww.otherdomain.com.
Business Accounts
Answer for Membership
by: ahoffmannPosted on 2003-08-04 at 09:25:03ID: 9072071
forwarding is setup in named.conf, not the zone files.
Also: you should not use different domains in the same zone file, like your
www A www.otherdomain.com.
this definition will also not work propper