Link to home
Start Free TrialLog in
Avatar of StaffordGroup
StaffordGroup

asked on

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!

Jared
Avatar of edchipman
edchipman
Flag of Canada image

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.
ASKER CERTIFIED SOLUTION
Avatar of StaffordGroup
StaffordGroup

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of StaffordGroup
StaffordGroup

ASKER

Solved ourselves. Thank you