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

Create your record using the Route 53 console and specify the necessary values for alias records.

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)

CNAME support

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:

Name Type Value
cname.example.com. CNAME(ALIAS) cname1.example.com.
cname1.example.com. CNAME abc.example.net.
abc.example.net. A

Invalid CNAME(ALIAS) record:

Name Type Value
cname.example.com. CNAME(ALIAS) d12345xx.cloudfront.net.
cname.example.com. CNAME(ALIAS) dualstack.elb123.us-east 1.elb.amazonaws.com.
cname.example.com. CNAME(ALIAS) s3-website-us-west-2.amazonaws.com.
cname.example.com. CNAME(ALIAS) ebs1234.us-east-1.elasticbeanstalk.com.

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.

Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2018-08-16