I would like to host only my email on host-gator but website on Amazon. How do make it work? The support don't really have the knowledge of this.

I tried to create a A record to the hostgator , can i have multiple A record? What i did was create a MX(webmail.domain.com) record in Route53 that point to my A record (webmail.domain.com) in Route53 which point to the host-gator email. That is what i'm told to do, but doesn't seem right.

DO i need to create a MX or something on host-gator? Quite confusing , not sure how it works.

Advice and knowledge would be greatly appreciated. Thanks ! :)

  • You seemed to have did the right thing. Just give it a while for DNS to propagate properly, usually takes up to 24-48 hours. What do you get when you do dig webmail.domain.dom MX – Mardanian Jan 17 '13 at 15:30
  • The parent nameservers do not have your nameservers listed – CodeGuru Jan 17 '13 at 15:47

It sounds like you have two issues:

  1. The error message The parent nameservers do not have your nameservers listed means that you haven't told your registrar where your nameservers are. Your nameservers are probably either HostGator's or Route53's but you should not have both and you should only be changing entries in one of them - the correct one. The canonical question on how DNS works should help you to understand this.
  2. What you need in order to send email to HostGator and web traffic to AWS is:
    • An MX record that contains mail.example.com and a priority number.
    • An A record for mx.example.com that lists your HostGator IP address.
    • One of:
      1. A CNAME record for www.example.com that points to your AWS instance.
      2. An A record for www.example.com that points to your AWS Elastic IP.
    • You can choose to have an A record for example.com or not. If you do have one, it would be best to point it at your AWS Elastic IP.

You can have multiple A records for a single name but doing so will not achieve what you are trying to achieve. This is called Round-Robin DNS and clients will choose one of the returned IP addresses (usually at random) and use that address until the TTL expires.

  • Dont really understand. Sorry. I have my registrar nameserver as amazon's and would like to manage the mail/server from route 53. Email handled by hostgator, webhosting handled by ec2 – CodeGuru Jan 17 '13 at 16:18
  • My current MX name is webmail.domain.com , value 10 webmail.domain.com --- A record name is webmail.domain.com , value [hostgator ip] – CodeGuru Jan 17 '13 at 16:20
  • That's probably fine, but you have to fix the problem I labeled as 1. first, because no one else can look up those MX or A records until you fix the first problem. – Ladadadada Jan 17 '13 at 16:33

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