AWS

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

Photo by icon0.com from Pexels

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 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.

Create 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 an A Record with alias and point www.origdoc.com to the load balancer. Then, create another A Record with an 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

You Might Also Like