Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a client site currently on a Hostgator reseller account but I'd like to move the website hosting over to my Linode. The email accounts however should stay with Hostgator. DNS is also managed with Hostgator. In the " Simple DNS Zone Editor" of the Hostgator CPanel I have the option to add an A Record or a CName record.

In which of the two do I need to enter my Linode IP, and will their emails continue to function fine on Hostgator? Is this all I need to do?

share|improve this question
up vote 0 down vote accepted

In Hostgator's DNS zone editor, change the current A record for and/or to the Linode hostname or IP. As long as you don't modify the MX records, email will be unaffected.

share|improve this answer
Remember: If you're changing the DNS entry for, make sure that you verify that you do have a correct MX entry pointing to your mail host. Otherwise you're going to break mail. – Christopher Cashell Jul 26 '10 at 22:41

While dysolution's answer should work, I recently ran into the same predicament as yourself and have found that the simple, obvious, and logical solution does not actually work.

HostGator's DNS has the MX record for a domain point back at a CNAME, is itself a CNAME to the A (which points to HostGator's servers). First, changing the A record will break email, as nothing will be set up do handle it. The obvious solution of changing the CNAME and pointing it back to the original IP of the website (A, doesn't actually work either. It appears they have some fancy stuff going on which makes it difficult to work outside their system.

If I find a solution to my problem, I'll be sure to post it here.

share|improve this answer
HostGator's default DNS sounds nasty. CNAMEs are prohibited in MX records, according to RFC974, RFC1034 3.6.2, RFC1912 2.4, and RFC2181 10.3 (as reported by In this case one should delete the CNAME record and re-create it as an A record which points to the appropriate HostGator IP address to resolve the issue. – Justin Scott Aug 29 '11 at 0:24
I opened my own question on the issue and was able to find a solution after a bit of work. Their default setup is definitely nasty. – Dakota Sep 1 '11 at 3:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.