Search code examples
subdomainhosting

Subdomain on different host


I'm trying to host a subdomain for my site with a different hosting company and I'm running into issues on how to set it up.

Here are the specifics:

  • Domain is registered with GoDaddy.
  • Nameservers are pointing to DiscountASP.net where ASP.NET app has been happily running for couple of years.
  • Would like blog.mydomain.example to point to my account with DreamHost.com to take advantage of their LAMP stack.

I have added blog.mydomain.example to DreamHost (after adding mydomain.example) via their control panel. I thought I would be able to add a subdomain entry on GoDaddy to point to DreamHost, but all they allow is blog.mydomain.example = new URL.

In theory I could just take our .biz or .net domain and host it on DreamHost but was hoping I could do it all with a subdomain.

So, to summarize I'd like to know if what I want to do is feasible and if so, how do I go about it (given the constraints of GoDaddy, DiscountASP, & DreamHost).


Solution

  • A sub domain is part of the domain, it's like subletting a room of an apartment. A records has to be setup on the DNS for the domain e.g

    mydomain.example has IP 123.456.789.999 and hosted with Godaddy. Now to get the sub domain

    anothersite.mydomain.example

    of which the site is actually on another server then

    login to Godaddy and add an A record dnsimple anothersite.mydomain.example and point the IP to the other server 98.22.11.11

    And that's it.