I am currently trying to migrate a WordPress website to my Linode server from GoDaddy's hosting service. While I have followed all of the tutorials in uploading files, setting up databases, etc., I believe I may be having some DNS issues due to an existing subdomain already on the Linode. The existing site on the server is a subdomain of the website I am trying to transfer over.
I have the RDNS record setup for the subdomain, pointing to the Linode's IP, as well as the following record in my DNS Zone File at GoDaddy:
A Record
Host = vote, Points to = 50.116.53.66 (my Linode's IP)
In a tutorial I read, it appears that I must update the A record for the main domain ("@" in GoDaddy's Zone File) and point it to the Linode IP (50.116.xx.xx). I have done this but now when I go to the main/root domain, I get forwarded to the subdomain and cannot access the old website, neither through GoDaddy hosting nor through the files I have migrated to the Linode (including the MySQL database which is migrated).
I have a couple specific questions regarding this issue:
1) Do I need to update the Nameserver (NS) Records in the GoDaddy Zone File to point to the Linode nameservers?
2) Do I need to setup a Zone File through the Linode Manager? If so, should I copy all of my existing (or some of) records from GoDaddy's Zone File?
3) I attempted to update the RDNS to point to my root domain (it's currently the subdomain), and while it works, you can only have one RDNS. Should I leave the RDNS as my subdomain or should I use my root domain?
Lastly, I have setup the necessary sites-available and hosts files as seen below:
/etc/hosts:
127.0.0.1 localhost
50.116.53.66 vote.comparemycandidates.com comparemycandidates
50.116.53.66 comparemycandidates.com cmcmainsite
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
- - -
/etc/apache2/sites-available/comparemycandidates.com:
# domain: comparemycandidates.com
# public: /home/comparemycandidates/public/comparemycandidates.com/
<VirtualHost *:80>
# Admin email, Server Name (domain name), and any aliases
ServerAdmin
xxx@comparemycandidates.com ServerName
http://www.comparemycandidates.com ServerAlias comparemycandidates.com
# Index file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /home/comparemycandidates/public/comparemycandidates.com/public
# Log file locations
LogLevel warn
ErrorLog /home/comparemycandidates/public/comparemycandidates.com/log/error.log
CustomLog /home/comparemycandidates/public/comparemycandidates.com/log/access.log combined </VirtualHost>
- - -
Thank you advance for your support as this is only my second Linode (the other on a different account), but the first time migrating a site and hosting multiple sites on the same Linode.