0

AWS – Two A Records with Alias to refer to Load Balancer

This post demonstrates how to point your domain to an AWS Load Balancer resource using two (2) A Records and we will use my domain name origdoc.com.

Hosted Zone

Before creating a Hosted Zone, register a domain name, e.g., example.com. It must be your own domain purchase from AWS or other domain name registrar like Namecheap.

If you have a Namecheap domain and want to create a Hosted Zone for, please look at Point your Namecheap domain to EC2 instance via Route53.

Created Hosted Zone

Initial Records – NS and SOA

A newly created Hosted Zone has only NS and SOA records.

Point www.origdoc.com and origdoc.com to Load Balancer

There are two (2) ways to do this.

Configuration 1

Create a A Record with alias and point www.origdoc.com to the load balancer. Then, create another A Record with alias for origdoc.com and point it to the first A Record created.

Configuration 2

Create A Records (with alias) for www.origdoc.com and origdoc.com

Karl San Gabriel

Karl San Gabriel

Java and Enterprise Technologies Expert