1

I have an AWS EC2 Elastic Beanstalk (Elastic Load Balancer) instance. I also have a registered domain name with 1&1 Domains.

My AWS load balanacer instance has a domain name:

https://thewhozoo.us-west-2.elasticbeanstalk.com/

Question

How do I get my 1&1 domain:

thewhozoo.com

to point to the AWS load balancer?

I have tried the A/AAAA Records, setting the IPv4 Address to my public IP, but this doesn't work because it points directly to the instance, and not the load balancer (https://thewhozoo.us-west-2.elasticbeanstalk.com/);

  • 1
    You typically use a CNAME DNS entry. Guide here. You don't use the protocol, just the server name given to you by AWS. What you're trying to use seems to be the application endpoint rather than an ELB. More info here. – Tim Jun 23 '17 at 18:30
  • Do I need to set up Route 53 on AWS? (If I do so, I see I can transfer my domain from 1&1 to AWS, but the problem is AWS is that it is much more expensive, i.e. $50/month plus other costs aws.amazon.com/route53/pricing) – Richard Jun 26 '17 at 6:34
  • If I don't use Route 53, and rather 'use a CNAME record to route queries to your load balancer', does that just redirect the domain name (www.thewhozoo.com) to the ELB (https://thewhozoo.us-west-2.elasticbeanstalk.com/)? Ie, does it just change the url to https://thewhozoo.us-west-2.elasticbeanstalk.com/? If this is the case, it's not suitable, because the domain name in the browser url needs to be www.thewhozoo.com for SEO and the https certificate lets secure traffic on that name. – Richard Jun 26 '17 at 6:46
  • You don't need to use R53. You just need to make a DNS CNAME entry at your existing registrar pointing at your ELB domain name. A CNAME isn't a redirect, it's more like an alias, but it's not quite either. You probably need to do some reading to learn DNS, this is generally considered quite simple and it's well documented. – Tim Jun 26 '17 at 8:55
  • Thanks Tim, that's the advise I need. I think my simplest solution is to do as you sugggest and use a CNAME on 1&1. Appreciate the help. – Richard Jun 26 '17 at 9:38
0

The easiest approach is to create a CNAME record on your existing DNS provider, containing the url of your load balancer.

This just moves my comments to an answer so it can be marked off as complete.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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