When you create alias records, you specify the following values. For more information, see Choosing Between Alias and Non-Alias Records.

Name

Enter the name of the domain or subdomain that you want to route traffic for. The default value is the name of the hosted zone.

Note

If you’re creating a record that has the same name as the hosted zone, don’t enter a value (for example, an @ symbol) in the Name field.

CNAME records
If you’re creating a record that has a value of CNAME for Type, the name of the record can’t be the same as the name of the hosted zone.
Aliases to CloudFront distributions and Amazon S3 buckets
The value that you specify depends in part on the AWS resource that you’re routing traffic to:

  • CloudFront distribution – Your distribution must include an alternate domain name that matches the name of the record. For example, if the name of the record is acme.example.com, your CloudFront distribution must include acme.example.com as one of the alternate domain names. For more information, see Using Alternate Domain Names (CNAMEs) in the Amazon CloudFront Developer Guide.
  • Amazon S3 bucket – The name of the record must match the name of your Amazon S3 bucket. For example, if the name of your bucket is acme.example.com, the name of this record must also be acme.example.com.In addition, you must configure the bucket for website hosting. For more information, see Configure a Bucket for Website Hosting in the Amazon Simple Storage Service Developer Guide.
Special characters
For information about how to specify characters other than a-z, 0-9, and – (hyphen) and how to specify internationalized domain names, see DNS Domain Name Format.
Wildcard characters
You can use an asterisk (*) character in the name. DNS treats the * character either as a wildcard or as the * character (ASCII 42), depending on where it appears in the name. For more information, see Using an Asterisk (*) in the Names of Hosted Zones and Records.

Type

The DNS record type. For more information, see Supported DNS Record Types.

Select the applicable value based on the AWS resource that you’re routing traffic to:

CloudFront distribution
Select A — IPv4 address.

If IPv6 is enabled for the distribution, create two records, one with a value of A — IPv4 address for Type, and one with a value of AAAA — IPv6 address.

Elastic Beanstalk environment that has regionalized subdomains
Select A — IPv4 address
ELB load balancer
Select A — IPv4 address or AAAA — IPv6 address
Amazon S3 bucket
Select A — IPv4 address
Another record in this hosted zone
Select the type of the record that you’re creating the alias for. All types are supported except NS and SOA.

Note

If you’re creating an alias record that has the same name as the hosted zone (known as the zone apex), you can’t route traffic to a record for which the value of Type is CNAME. This is because the alias record must have the same type as the record you’re routing traffic to, and creating a CNAME record for the zone apex isn’t supported even for an alias record.

Alias

Select Yes.

Alias Target

The value that you specify depends on the AWS resource that you’re routing traffic to.

CloudFront Distributions
For CloudFront distributions, do one of the following:

  • If you used the same account to create your Route 53 hosted zone and your CloudFront distribution – Choose Alias Target and choose a distribution from the list. If you have a lot of distributions, you can enter the first few characters of the domain name for your distribution to filter the list.If your distribution doesn’t appear in the list, note the following:
    • The name of this record must match an alternate domain name in your distribution.
    • If you just added an alternate domain name to your distribution, it may take 15 minutes for your changes to propagate to all CloudFront edge locations. Until changes have propagated, Route 53 can’t know about the new alternate domain name.
  • If you used different accounts to create your Route 53 hosted zone and your distribution – Enter the CloudFront domain name for the distribution, such as d111111abcdef8.cloudfront.net.If you used one AWS account to create the current hosted zone and a different account to create a distribution, the distribution will not appear in the Alias Targets list.If you used one account to create the current hosted zone and one or more different accounts to create all of your distributions, the Alias Targets list shows No Targets Available under CloudFront Distributions.

Important

Do not route queries to a CloudFront distribution that has not propagated to all edge locations, or your users won’t be able to access the applicable content.

Your CloudFront distribution must include an alternate domain name that matches the name of the record. For example, if the name of the record is acme.example.com, your CloudFront distribution must include acme.example.com as one of the alternate domain names. For more information, see Using Alternate Domain Names (CNAMEs) in the Amazon CloudFront Developer Guide.

If IPv6 is enabled for the distribution, create two records, one with a value of A — IPv4 address for Type, and one with a value of AAAA — IPv6 address.

Elastic Beanstalk environments that have regionalized subdomains
If the domain name for your Elastic Beanstalk environment includes the region that you deployed the environment in, you can create an alias record that routes traffic to the environment. For example, the domain name my-environment.us-west-2.elasticbeanstalk.com is a regionalized domain name.

Important

For environments that were created before early 2016, the domain name doesn’t include the region. To route traffic to these environments, you must create a CNAME record instead of an alias record. Note that you can’t create a CNAME record for the root domain name. For example, if your domain name is example.com, you can create a record that routes traffic for acme.example.com to your Elastic Beanstalk environment, but you can’t create a record that routes traffic for example.com to your Elastic Beanstalk environment.

For Elastic Beanstalk environments that have regionalized subdomains, do one of the following:

  • If you used the same account to create your Route 53 hosted zone and your Elastic Beanstalk environment – Choose Alias Target, and then choose an environment from the list. If you have a lot of environments, you can enter the first few characters of the CNAME attribute for the environment to filter the list.
  • If you used different accounts to create your Route 53 hosted zone and your Elastic Beanstalk environment – Enter the CNAME attribute for the Elastic Beanstalk environment.
ELB Load Balancers
For ELB load balancers, do one of the following:

  • If you used the same account to create your Route 53 hosted zone and your load balancer – Choose Alias Target and choose a load balancer from the list. If you have a lot of load balancers, you can enter the first few characters of the DNS name to filter the list.
  • If you used different accounts to create your Route 53 hosted zone and your load balancer – Enter the value that you got in the procedure Getting the DNS Name for an ELB Load Balancer.If you used one AWS account to create the current hosted zone and a different account to create a load balancer, the load balancer will not appear in the Alias Targets list.If you used one account to create the current hosted zone and one or more different accounts to create all of your load balancers, the Alias Targets list shows No Targets Available under Elastic Load Balancers.

In either case, the console prepends dualstack. to the DNS name. When a client, such as a web browser, requests the IP address for your domain name (example.com) or subdomain name (www.example.com), the client can request an IPv4 address (an A record), an IPv6 address (a AAAA record), or both IPv4 and IPv6 addresses (in separate requests). The dualstack. designation allows Route 53 to respond with the appropriate IP address for your load balancer based on which IP address format the client requested.

Amazon S3 Buckets
For Amazon S3 buckets that are configured as website endpoints, do one of the following:

  • If you used the same account to create your Route 53 hosted zone and your Amazon S3 bucket – Choose Alias Target and choose a bucket from the list. If you have a lot of buckets, you can enter the first few characters of the DNS name to filter the list.The value of Alias Target changes to the Amazon S3 website endpoint for your bucket.
  • If you used different accounts to create your Route 53 hosted zone and your Amazon S3 bucket – Enter the name of the region that you created your S3 bucket in. Use the value that appears in the Website Endpoint column in the Amazon Simple Storage Service Website Endpoints table in the AWS Regions and Endpoints chapter of the Amazon Web Services General Reference.If you used AWS accounts other than the current account to create your Amazon S3 buckets, the bucket won’t appear in the Alias Targets list.

You must configure the bucket for website hosting. For more information, see Configure a Bucket for Website Hosting in the Amazon Simple Storage Service Developer Guide.

The name of the record must match the name of your Amazon S3 bucket. For example, if the name of your Amazon S3 bucket is acme.example.com, the name of this record must also be acme.example.com.

In a group of weighted alias, latency alias, failover alias, or geolocation alias records, you can create only one record that routes queries to an Amazon S3 bucket because the name of the record must match the name of the bucket and bucket names must be globally unique.

Records in this Hosted Zone
For records in this hosted zone, choose Alias Target and choose the applicable record. If you have a lot of records, you can enter the first few characters of the name to filter the list.

If the hosted zone contains only the default NS and SOA records, the Alias Targets list shows No Targets Available.

Note

If you’re creating an alias record that has the same name as the hosted zone (known as the zone apex), you can’t choose a record for which the value of Type is CNAME. This is because the alias record must have the same type as the record you’re routing traffic to, and creating a CNAME record for the zone apex isn’t supported even for an alias record.

Alias Hosted Zone ID

This value appears automatically based on the value that you selected or entered for Alias Target.

Routing Policy

Select Simple.

Evaluate Target Health

Select Yes if you want Route 53 to determine whether to respond to DNS queries using this record by checking the health of the resource specified by Alias Target.

Note the following:

CloudFront distributions
You can’t set Evaluate Target Health to Yes when the alias target is a CloudFront distribution.
Elastic Beanstalk environments that have regionalized subdomains
If you specify an Elastic Beanstalk environment in Alias Target and the environment contains an ELB load balancer, Elastic Load Balancing routes queries only to the healthy Amazon EC2 instances that are registered with the load balancer. (An environment automatically contains an ELB load balancer if it includes more than one Amazon EC2 instance.) If you set Evaluate Target Health to Yes and either no Amazon EC2 instances are healthy or the load balancer itself is unhealthy, Route 53 routes queries to other available resources that are healthy, if any.

If the environment contains a single Amazon EC2 instance, there are no special requirements.

ELB load balancers
Health checking behavior depends on the type of load balancer:

  • Classic Load Balancers – If you specify an ELB Classic Load Balancer in Alias Target, Elastic Load Balancing routes queries only to the healthy Amazon EC2 instances that are registered with the load balancer. If you set Evaluate Target Health to Yes and either no EC2 instances are healthy or the load balancer itself is unhealthy, Route 53 routes queries to other resources.
  • Application and Network Load Balancers – If you specify an ELB Application or Network Load Balancer and you set Evaluate Target Health to Yes, Route 53 routes queries to the load balancer based on the health of the target groups that are associated with the load balancer:
    • For an Application or Network Load Balancer to be considered healthy, every target group that contains targets must contain at least one healthy target. If any target group contains only unhealthy targets, the load balancer is considered unhealthy, and Route 53 routes queries to other resources.
    • A target group that has no registered targets is considered healthy.

Note

When you create a load balancer, you configure settings for Elastic Load Balancing health checks; they’re not Route 53 health checks, but they perform a similar function. Do not create Route 53 health checks for the EC2 instances that you register with an ELB load balancer.

S3 buckets
There are no special requirements for setting Evaluate Target Health to Yes when the alias target is an S3 bucket.
Other records in the same hosted zone
If the AWS resource that you specify in Alias Target is a record or a group of records (for example, a group of weighted records) but is not another alias record, we recommend that you associate a health check with all of the records in the alias target. For more information, see What Happens When You Omit Health Checks?.