Hello! I have a domain (domain-a.com) that is fully hosted on DreamHost. A second domain (domain-b.com) is registered and hosted at other providers. I would like migrate domain-b to mirror domain-a and serve up the content that is here at DreamHost, so that http:/www.domain-b.com/pagex.htm will be preserved in the URL address bar but will serve up the exact same content that is at http:/www.domain-a.com/pagex.htm - and so on and so on for resolving every URL for which there is DH content for Domain A. I don’t want it to redirect, so I think I mirroring is the way to go.
I’d like to set this up without fully hosting DNS for Domain B at DreamHost, because I want to preserve the current MX mail delivery routing.
I think I need to set up a CNAME or A Record at the registrar for Domain B, but I don’t know which route to take given that DreamHost uses virtual hosting. I don’t know how this affects the IP addresses used by an A Record.
The nameservers run on a set of “tables” consisting of multiple records of various types. That is pretty easy. However, when you look at the nameserver, say the granddaddy of UNIX nameservers called “bind”, and its tables you can tell that the names in the tables are relative to the domain. There is a file for each domain and everything about that domain is in that file.
That is where the redirect comes into play. The redirect is really something that the web server gives the web browser when it wants a page. Say that your page reference is to www.host.com and you want the “index.html” page. Well, you tell the web server on www.host.com that the index.html page is to be redirected to www.barbq.com’s index.html page. That is legal. It is legal because what goes back to the web browser is an error code that you have either temporarily or permanetly moved the web page “index.html” from www.host.com to www.barbq.com. The web browser will then re-request the page from www.barbq.com.
A temporary relocation does not change the page reference. It would still say that the page is located at www.host.com.
A permanent relocation will change the page reference on the browser line.
But, in no case can you put into either host.com nor barbq.com nameserver tables a cross-domain reference and have it work because all of the domain references in the table are relative to the one domain that is being described.
This does not apply to service references such as the MX records. Those point to whole names; but you did not ask about email servers.