Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subdomain on different host [closed]

People also ask

Can a subdomain be on a different host?

Update A Record of Sub-domain and point it to another hosting: This one step is the most crucial part of hosting your sub-domain on another hosting account. You need to go to your domain registrar and add A record for your sub-domain to point it to your new server. I.P address will be of your new hosting sever I.P.

Can subdomain point to different IP?

Subdomains can be modified as an A record that is pointing to an IP address. Or, they can be modified as a CNAME that is pointing to another domain name. A CNAME record cannot be pointed to an IP address.

Are subdomains treated as separate sites?

A subdomain is very different from a subdirectory; it is like an entirely different website. The subdomain is associated with the domain, but not the website that is associated with the domain name. A subdomain is generally considered as a standalone site that is branched off from the main domain.


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.com has IP 123.456.789.999 and hosted with Godaddy. Now to get the sub domain

anothersite.mydomain.com

of which the site is actually on another server then

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

And that's it.


You just need to add an "A" record in the DNS manager on Godaddy. In that "A" record put your IP from dreamhost.

I know this works since I'm doing the very same thing.


UPDATE - I do not have Total DNS enabled at GoDaddy because the domain is hosted at DiscountASP. As such, I could not add an A Record and that is why GoDaddy was only offering to forward my subdomain to a different site. I finally realized that I had to go to DiscountASP to add the A Record to point to DreamHost. Now waiting to see if it all works!

Of course, use the stinkin' IP! I'm not sure why that wasn't registering for me. I guess their helper text example of pointing to another url was throwing me off.

Thanks for both of the replies. I 'got it' as soon as I read Bryant's response which was first but Saif kicked it up a notch and added a little more detail.

Thanks!