Values that are common for alias records for all routing policies (original) (raw)

These are the common alias values that you can specify when you create or edit Amazon Route 53 records. These values are used by all routing policies.

Record 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 theName 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:

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.

Value/route traffic to

The value that you choose from the list or that you type in the field depends on the AWS resource that you're routing traffic to.

For more information about how to configure Route 53 to route traffic to specific AWS resources, see Routing internet traffic to your AWS resources.

Important

If you used the same AWS account to create your hosted zone and the resource that you're routing traffic to, and if your resource doesn't appear in the Endpoint list, check the following:

If you used different AWS accounts to create the hosted zone and the resource, the Endpoint list doesn't display your resource. See the following documentation for your resource type to determine what value to type in Endpoint.

API Gateway custom regional APIs and edge-optimized APIs

For API Gateway custom regional APIs and edge-optimized APIs, do one of the following:

Note

The name of this record must match a custom domain name for your API, such as api.example.com.

CloudFront distributions

For CloudFront distributions, do one of the following:

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 ofA — IPv4 address for Record type, and one with a value of AAAA — IPv6 address. For more information, see Routing traffic to an Amazon CloudFront distribution by using your domain name.

App Runner service

For App Runner service, do one of the following:

For more information, see Configuring Amazon Route 53 to route traffic to an App Runner service.

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 namemy-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:

For more information, see Routing traffic to an AWS Elastic Beanstalk environment.

ELB Load Balancers

For ELB load balancers, do one of the following:

The console prepends dualstack. for Application and Classic Load Balancer from a different account. 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.

For more information, see Routing traffic to an ELB load balancer.

AWS Global Accelerator accelerators

For AWS Global Accelerator accelerators, enter the DNS name for the accelerator. You can enter the DNS name of an accelerator that you created using the current AWS account or using a different AWS account.

Amazon S3 Buckets

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

You must configure the bucket for website hosting. For more information, see Configure a bucket for website hosting in the Amazon Simple Storage Service User 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 isacme.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.

Amazon OpenSearch Service

For OpenSearch Service, do one of the following:

For more information, see Configuring Amazon Route 53 to route traffic to Amazon OpenSearch Service domain endpoint.

Amazon VPC interface endpoints

For Amazon VPC interface endpoints, do one of the following:

Records in this Hosted Zone

For records in this hosted zone, choose Endpoint 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 Endpoints 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 Record 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.