1and1 domain redirected to Amazon ELB: 1and1 free email accs management

1and1amazon-elbdomain-name-system

The web is behind an elastic load balancer in Amazon. I registered the domain with 1and1 which offers 10 free email accounts for the domain so I don't have to care about email servers for the moment.

The current problem is 1and1 can't redirect these free accounts if I use the load balancer DNS name as CNAME in the DNS configuration of the 1and1 control panel. 1and1 can only redirect emails when using IPs in DNS configuration.

Some people talk about solutions that recommend use of route53 or other domain/DNS providers but I would like to know if i can solve the problem using specifically 1and1. Maybe it's a 1and1 limitation, not sure if other domain providers allow to redirect the domain to CNAMEs while keeping the management of the free accounts they offer.

If you have faced the same problem, I'd like to hear about it.

Best Answer

I solved it, so I'll explain the solution to help others facing the same problem:

  • Create a hosted zone in Amazon's Route 53 pointing to your domain (in my case, mydomain.com, the zone apex)
  • Every hosted zone comes with 2 default record set types: 1) NS and 2) SOA
  • Use the 4 name servers of the NS record set ('value' column, a list with the name servers used by Route 53) in your domain register DNS configuration panel, 1and1 in my case.
  • Add a record set of type MX pointing to the 1and1 mx servers (mx00.1and1.es and mx01.1and1.es in my case)
  • I'm also using a record set of type A (IPv4) to point mydomain.com to my web balancer ('Alias'=YES and 'Alias target'=yourbalanceDNSname)
Related Topic