domain/dns Q

domain/dns Q

Posted by: rocky66
Posted on: 2008-09-01 07:51:00

hello guys and gals quick Q,
i have purchased 2 domains on DH
one is my main that came with the webspace - and i want the secondary to point onto the same webspace too.
i understand that the best way to do that would be to
change either the a or cname records right ? it only appears that those are hardcoded here ? is it possible to do that ?

i will have a more thorough look through the wiki, although at a first glance i didn't find an answer.

cheers.

Re: domain/dns Q

Posted by: sdayman
Posted on: 2008-09-01 07:59:00

If you have webspace, then you have the full hosting package. The easiest way to do what you're asking is to go to the panel and Mirror the first domain.
http://wiki.dreamhost.com/Mirror_Domain

-Scott

Re: domain/dns Q

Posted by: rocky66
Posted on: 2008-09-02 04:20:00

hm, true indeed, but i want it if possible to be able to not land on the first page of the original site, so as to mask the original site, but use the path on other ones !

any ideas ? maybe re-writing some serverside file ? .htaccess or something likewise ??????


Edited by rocky66 on 09/02/08 04:41 AM (server time).

Re: domain/dns Q

Posted by: sdayman
Posted on: 2008-09-02 05:50:00

You can use the Redirect option instead of Mirror:
http://wiki.dreamhost.com/Redirect_Domain

-Scott

Re: domain/dns Q

Posted by: rocky66
Posted on: 2008-09-02 06:14:00

that is true - but i think the resources bar or properties would reveal the real source that way, so i guess - mirroring is the way to go and i will try to make the site - that the domain lands to re-act, in a different way - if the visitor arrives from the secondary domain.... instead of the real one.

otherwise - it does what i want - conceals the source of the files on the other sites, so your help is greatly appreciated.

Just one final Q - is it completely - impossible to meddle with the Cname and A records on dreamhost ?! (just for some other things i might want to do)

Re: domain/dns Q

Posted by: sdayman
Posted on: 2008-09-02 06:44:00

You can work with CNAME (and other Types) of DNS records here. It's pretty flexible.

There may be a way to handle your request via CNAME and .htaccess rewrite rules, but I'm no .htaccess wizard.

-Scott

Re: domain/dns Q

Posted by: sXi
Posted on: 2008-09-02 08:10:00

You could use a 301 redirect in the secondary.

.htaccess contents:

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://primarydomain.com/$1 [R=301,L]


Spiders will update their links to your primary site when they see that, which is handy if your secondary already has some Search Engine rankings.


Tags: cname recordsdomain dnsfirst glancegalscheerswiki