The difference between CNAME and ALIAS
AWS resources (Load Balancer, CloudFront,…) expose an AWS hostname:
- lb1-123.us-east-2.elb.aws.com and you want myapp.mydomain.com
| CNAME | ALIAS |
| Points a hostname to any other hostname | Points a hostname to an AWS resource |
| Only works for NON-ROOT domain | Works for ROOT & NON-ROOT |
| Free & Native health check | |
| Can’t set the TTL |
Alias Records Targets
Elastic Load Balancers
CloudFront
API Gateway
Elastic Beanstalk
S3 Websites
VPC interface endpoints
Global accelerator
You can not set an ALIAS record for the EC2 DNS name
About the author
I am a dedicated software engineer with a deep passion for security and a commitment to developing robust and scalable solutions. With over three years of hands-on experience in the .NET ecosystem, I have built, maintained, and optimized various software applications, demonstrating my ability to adapt to diverse project needs. In addition to my expertise in .NET, I have six months of specialized experience working with Spring Boot and ReactJS, further broadening my skill set to include full-stack development and modern web technologies. My professional journey includes deploying small to medium-sized systems to cloud platforms and on-premises environments, where I have ensured reliability, scalability, and efficient resource utilization. This combination of skills and experience reflects my versatility and commitment to staying at the forefront of the ever-evolving tech landscape.
Comments
Join the discussionNo comments yet. Be the first to comment.
SAA-C03 Certification
The purpose of this series is to document comprehensive notes in preparation for the AWS Solution Architect Associate Certification.