Move hosting & email of a foreign domain to DH, without moving domain registration


#1

Hi,

I want to move my current mydomain.nl website and email hosting to DreamHost.
As it’s a .nl domain I can’t move the registration of the domain to DreamHost.

I am already hosting another domain at DreamHost, mydreamhost.com.

I understand I have to change the nameserver setting of my mydomain.nl registration to point to ns1/2/3.dreamhost.com.

The missing link for me is how I then control where the files are hosted.
I think I can create a subdomain in mydreamhost.com, e.g. mydomainnl.mydreamhost.com.
But how do I control that mydomain.nl requests end up at mydomainnl.mydreamhost.com?
And will this be transparent, i.e. the user will only see mydomain.nl URLs in his browser (I only use relative URLs in my HTML/JS)?

Then how do I migrate my email hosting?
Which records in my mydomain.nl registration should I change? MX, CNAME, A records?

Cheers,
Rene


#2

Changing the DNS passes full control of the domain over to your account here. You’re basically just using a registrar to maintain your ownership of the domain.


#3

Yes, I understand that.
For me the missing piece of the puzzle is how requests end up at the right place.
If someone visits http://www.mydomain.nl, that requests ends up at DreamHost as I’ve changed the nameservers of my mydomain.nl registration to ns1/2/3.dreamhost.com.
But where does it end up?
DreamHost doesn’t know about my mydomain.nl registration, as they’re not my registrar.
So somewhere, somehow, I have to make the link.


#4

Is this the trick, redirecting through CNAME?
Assume foobar.nl is my current domain, and I create a subdomain in my existing mydreamhostdomain.com:

foobar.nl  NS  ns1.dreamhost.com
foobar.nl  NS  ns2.dreamhost.com
foobar.nl  NS  ns3.dreamhost.com
localhost.foobar.nl  A  127.0.0.1
foobar.nl      CNAME  foobar.mydreamhostdomain.com
www.foobar.nl  CNAME  foobar.nl

#5

No. Since you ahve set the nameservers to dreamhost management, go to manage to manage domains in the panel and add the .nl domain as fully hosted. As mentioned, Hosting and registrar services are two different things.[hr]
delete the cname records first, they will conflict.


#6

Ah, I see, that’s just too simple! :slight_smile:
Didn’t realize I could just enter foobar.nl as ‘Domain to Host’.

So I will just leave the NS and the localhost A records, and scrap the rest (including MX), correct?


#7

Actually… if you have nameservers set to ns1/2/3.dreamhost.com at the registar then you need nothing else there… the dreamhost panel will generate everything else you need, as you add services via the panel.


#8

Cool, thank you very much LakeRat for explaining!