I am creating an alias record in Amazon Route 53 to integrate my domain with services hosted on AWS. What type of alias record should I create?
Route 53 alias records are mapped internally to the DNS name of alias targets such as AWS resources. Route 53 monitors the IP address associated with an alias target's DNS name for scaling actions and software updates. The authoritative response from Route 53 name servers contains an A record (for IPv4 addresses) or AAAA record (for IPv6 addresses) with the IP address of the alias target.
Create an alias record
Be sure to use the correct DNS record type for IP addresses in the service you're pointing to:
- Amazon CloudFront distribution: A record (IPv4) or AAAA record (IPv6)
- AWS Elastic Beanstalk environment: A record (IPv4)
- Elastic Load Balancing (ELB) load balancer: A record (IPv4) or AAAA record (IPv6)
- Amazon Simple Storage Service (Amazon S3) bucket: A record (IPv4)
Route 53 follows the pointer in an alias record only if the record type also matches. To create an alias record for a CNAME record, the alias target must also resolve to a CNAME value.
Even if you create an invalid CNAME(ALIAS) record, Route 53 can't resolve the IP address of the endpoint, and so Route 53 returns SERVFAIL/REFUSED RCODE.
Valid CNAME(ALIAS) record:
Invalid CNAME(ALIAS) record:
Pointing from non-Route 53 DNS providers
If you use another DNS provider besides Route 53 for your domain name, you might be able to point the domain to services hosted on AWS.
Check if your DNS provider supports CNAME records on a root domain using techniques such as CNAME flattening, ANAME records, or WebHops redirection.