How to Configure Route53 DNS for an ELB in AWS

By | 2015/03/09

Amazon Web Services or AWS has a unique feature for managing DNS with their load balancer. Here is how to configure DNS in Route53 for an ELB!


Route53 offers a DNS record type AWS calls an A Alias. This is something Amazon created just for AWS and works great for managing DNS for an ELB.


In Route53, create an A Alias record which points to the ELB endpoint.

If in the same AWS account, a dropdown will appear at Alias Target to select the desired ELB.

01-elb-dns

02-elb-dns

Also be sure to create an AAAA Alias pointing to the same ELB for IPv6!


Alternatively the ELB dualstack endpoint can be pasted in manually as the Alias Target. This exact address can be found under the EC2 > Load Balancer section.

03-elb-dns



Below is the output of the host command for an example site using this configuration:

$ host lexile.com                                                             
lexile.com has address 54.225.175.222                                                           
lexile.com has address 50.19.122.200                                                            
lexile.com has IPv6 address 2406:da00:ff00::36e1:afde                                           
lexile.com has IPv6 address 2406:da00:ff00::3213:7ac8                                           
lexile.com mail is handled by 30 alt2.aspmx.l.google.com.                                       
lexile.com mail is handled by 40 aspmx2.googlemail.com.                                         
lexile.com mail is handled by 50 aspmx3.googlemail.com.                                         
lexile.com mail is handled by 10 aspmx.l.google.com.                                            
lexile.com mail is handled by 20 alt1.aspmx.l.google.com.    

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.