Forum Moderators: phranque

Message Too Old, No Replies

Is it possible: homepage and subdomain on 2 different webhosts

         

alika

9:05 pm on Apr 23, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



My son and his friend are developing an AI tool, and the homepage and blog of domain.com will be on my server. The subdomain app.domain.com, if it succeeds, will be very resource-intensive, so his friend is developing it on his server.

The nameservers in GoDaddy, where the domain was purchased, are pointing to my server.

Domain purchased via GoDaddy
Homepage + blog pages hosted on Webhost A
Subdomain app.domain.com will be hosted on Webhost B

Is this situation going to work? And if so, how can the subdomain be set up in terms of nameservers, etc? I've not done something like this where two key pieces of a website are on 2 different web hosts.

If this is not doable, we may just migrate the website to the friend's server.

NickMNS

9:34 pm on Apr 23, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You would typically do this in the DNS records, where you would create A record (also an AAAA record for IPV6) for each subdomain and point it to the IP address of the respective servers. If at any point you want point to a different server, you can simply update the record with a the new server's ip address. I like to do this with Cloudflare, like that the server ip's are hidden from the public and you move things around at will, but this is not required.

topr8

9:37 pm on Apr 23, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



no problem.

you should be able to set an 'A' record in the DNS (eg. at godaddy) for

app.example.com to point to whatever ip address you want (eg. the ip address the other host gives you)

...

in summary, the nameserver can point the domain and multiple subdomains to different ip addresses (probably, not always, different servers)

it is very comon for instance to point mail.example.com or mx.example.com to a completely different server.

the nameserver can point all your sub-domains to different servers, this is no problem.
however i don't use godaddy, so have no idea if they allow you to do this within their system, i'd be suprised if they don't..

alika

9:13 pm on Apr 24, 2025 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thank you! Super helpful