• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 459
  • Last Modified:

Subdomain hosted on a different provider

We are hosting a beta website on a Linode VPS, and we are having difficulties with DNS resolution.  
Our main site uses GoDaddy for DNS, with A records for the main site, and the "beta" (linode) site.  When the beta site is loaded, it reverts to IP address in the address bar instead of the hostname.

/etc/resolv.conf is pointing to the Godaddy DNS: (ns49.domaincontrol.com) (ns50.domaincontrol.com)

Apache is configured with the proper hostname, as is the Linode in question.
Is this a DNS issue or a problem with the Linode VPS?

Thank you for any assistance on this issue!

  • 2
1 Solution
Your best bet is to set a A name for the subdomain in your domain's DNS records. This removes Apache from the equation and should prevent the issue you're having. Likely what is happening is Apache is seeing beta.example.com and redirecting the user to the ip of the VPS. If you set the subdomain as an A name at the domain level Apache on dreamhost never knows the request happened but the VPS will receive the request directly.
StaffordGroupAuthor Commented:
We solved this on our own. Ended up purchasing a domain.
StaffordGroupAuthor Commented:
Solved ourselves. Thank you
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now