Amazon Route 53 – How to Create a Zone Apex Alias for Elastic Load Balancer

amazon ec2amazon-route53load balancing

I created aliases for my domain name's zone apex using the ELB CLI as described in Elastic Load Balancing Developer Guide. I also added a AAAA record using the –rr-type AAAA flag, which is not described in the guide.

The Route 53 GUI is populated after I execute the elb-associate-route53-hosted-zone commands for A and AAAA records. I recorded how the records look in the GUI, deleted the records, and tried to re-create using the GUI only. I receive the following error.

RRSet with DNS name example.com., type A contains an alias target that contains a hosted zone that is an invalid alias target.

I would like to use the Route 53 GUI to perform this operation. Does the Route 53 GUI support the creation of a zone apex alias that points to a Elastic Load Balancer?

Best Answer

A engineer on the Route 53 team informed me that creating the proprietary alias can be created in the Route 53 Console (the GUI).

Here are the steps.

  1. click create record set
  2. for zone apex record just leave the name field blank
  3. select the type of alias you want to make A or AAAA (all steps after this are the same for both types)
  4. Select the yes radio button.
  5. Open the EC2 console in another tab and navigate to the list of your load balancers.
  6. Click on the load balancer and look at the description tab in the pane below the list. Sample output below

DNS Name: new-balancer-751654286.us-east-1.elb.amazonaws.com (A Record)
ipv6.new-balancer-751654286.us-east-1.elb.amazonaws.com (AAAA Record)
dualstack.new-balancer-751654286.us-east-1.elb.amazonaws.com (A or AAAA Record)

Note: Because the set of IP addresses associated with a LoadBalancer can change over time, you should never create an “A” record with any specific IP address. If you want to use a friendly DNS name for your LoadBalancer instead of the name generated by the Elastic Load Balancing service, you should create a CNAME record for the LoadBalancer DNS name, or use Amazon Route 53 to create a hosted zone. For more information, see the Using Domain Names With Elastic Load Balancing at http://docs.amazonwebservices.com/ElasticLoadBalancing/latest/DeveloperGuide/using-domain-names-with-elb.html.

Status: 0 of 0 instances in service

Port Configuration: 80 (HTTP) forwarding to 80 (HTTP)

Stickiness: Disabled(edit)

Availability Zones: us-east-1b

Source Security Group: amazon-elb-sg

Owner Alias: amazon-elb

Hosted Zone ID: Z3DZXD0Q79N41H

  1. Now copy the Hosted zone ID in the above case ‘ Z3DZXD0Q79N41H’ and paste it into the field labeled ‘Alias Hosted Zone ID:’
  2. Now copy the DNS Name in the above case ‘ new-balancer-751654286.us-east-1.elb.amazonaws.com‘ and paste into the field ‘ Alias DNS Name:’ -Just an FYI this DNS name is the same for both A and AAAA alias records. (do not use ‘ ipv6.new-balancer-751654286.us-east-1.elb.amazonaws.com‘)
  3. Click create record set or at this time you can select yes to weight the record and provide a weight between 0-255 and a setID such as ‘my load balancer’
Related Topic