AWS Security ChangesHomeSearch

AWS AmazonCloudFront: CloudFront: clarify DNS verification for moving alternate domain names

Service: AmazonCloudFront · 2026-11-20 · Documentation medium

File: AmazonCloudFront/latest/DeveloperGuide/alternate-domain-names-move-create-target.md · Type: authz

Summary

Rewrites the alternate domain name move procedure to explain that a DNS record (usually a CNAME, or a TXT record for apex/wildcard domains) must point the alternate domain name to the target standard distribution or distribution tenant, and adds a table of TXT record formats for subdomain, apex, and wildcard domains. Also notes the OnDomainTakeover=allow case requiring a DNS record even within the same AWS account.

Security assessment

The change documents the domain-ownership verification mechanism used when moving alternate domain names between AWS accounts, explicitly framed as preventing unauthorized domain transfers (domain takeover). It also documents the OnDomainTakeover=allow behavior requiring a DNS record even within the same account. This is security best-practice/feature documentation rather than a fix for a specific vulnerability or CVE.

Evidence

To move an alternate domain name from one AWS account to another, a DNS record must point the alternate domain name to the target standard distribution. This verification step helps prevent unauthorized domain transfers. CloudFront uses this DNS record to validate your ownership of the alternate domain name.

Diff

diff --git a/AmazonCloudFront/latest/DeveloperGuide/alternate-domain-names-move-create-target.md b/AmazonCloudFront/latest/DeveloperGuide/alternate-domain-names-move-create-target.md
index 2798f4e..8a251d1 100644
--- a//AmazonCloudFront/latest/DeveloperGuide/alternate-domain-names-move-create-target.md
+++ b//AmazonCloudFront/latest/DeveloperGuide/alternate-domain-names-move-create-target.md
@@ -28 +28 @@ If you already have a target standard distribution, associate the certificate wi
-  3. **If you’re moving alternate domain names within the same AWS account, skip this step.**
+  3. **If you're using**update-domain-association** to move alternate domain names within the same AWS account, skip this step.**
@@ -30 +30 @@ If you already have a target standard distribution, associate the certificate wi
-To move an alternate domain name from one AWS account to another, you must create a TXT record in your DNS configuration. This verification step helps prevent unauthorized domain transfers. CloudFront uses this TXT record to validate your ownership of the alternate domain name. 
+To move an alternate domain name from one AWS account to another, a DNS record must point the alternate domain name to the target standard distribution. This verification step helps prevent unauthorized domain transfers. CloudFront uses this DNS record to validate your ownership of the alternate domain name. 
@@ -32 +32 @@ To move an alternate domain name from one AWS account to another, you must creat
-In your DNS configuration, create a DNS TXT record that associates the alternate domain name with the target standard distribution. The TXT record format can vary, depending on the domain type.
+Usually, this is the domain's CNAME record, which points to the CloudFront domain name of the target standard distribution, such as d111111abcdef8.cloudfront.net. You can also create a TXT record instead.
@@ -34 +34 @@ In your DNS configuration, create a DNS TXT record that associates the alternate
-     * For subdomains, specify an underscore (`_`) in front of the alternate domain name. The following shows an example TXT record.
+An apex domain, such as `example.com`, can't have a CNAME record, and an alias record doesn't prove that you control the domain. For an apex domain, create a TXT record.
@@ -36 +36 @@ In your DNS configuration, create a DNS TXT record that associates the alternate
-`_www.example.com TXT d111111abcdef8.cloudfront.net`
+The name of the TXT record depends on the type of domain. The value is the CloudFront domain name of the target standard distribution, or the routing endpoint of the target distribution tenant's connection group, such as d111111abcdef8.cloudfront.net.
@@ -38,3 +38,5 @@ In your DNS configuration, create a DNS TXT record that associates the alternate
-     * For an apex (or root domain), specify an underscore and period ( `_.`) in front of the domain name. The following shows an example TXT record.
-
-`_.example.com TXT d111111abcdef8.cloudfront.net`
+Domain type | Domain | TXT record  
+---|---|---  
+Subdomain | `www.example.com` | `_www.example.com TXT d111111abcdef8.cloudfront.net`  
+Apex (root) domain | `example.com` | `_.example.com TXT d111111abcdef8.cloudfront.net`  
+Wildcard domain | `*.example.com` | `_*.example.com TXT d111111abcdef8.cloudfront.net`  
@@ -62,3 +64 @@ If you already have a target distribution tenant, associate the certificate with
-  3. **If you’re moving alternate domain names within the same AWS account, skip this step.**
-
-To move an alternate domain name from one AWS account to another, you must create a TXT record in your DNS configuration. This verification step helps prevent unauthorized domain transfers, and CloudFront uses this TXT record to validate your ownership of the alternate domain name. 
+  3. **If you're using**update-domain-association** to move alternate domain names within the same AWS account, skip this step.** If you're setting `OnDomainTakeover` to `allow`, you need a DNS record that points the domain to the target distribution tenant even within the same AWS account. For more information, see [Move domains when you create or update a distribution tenant](./alternate-domain-names-move-options.html#alternate-domain-names-move-takeover).
@@ -66 +66 @@ To move an alternate domain name from one AWS account to another, you must creat
-In your DNS configuration, create a DNS TXT record that associates the alternate domain name with the target distribution tenant. The TXT record format can vary, depending on the domain type.
+To move an alternate domain name from one AWS account to another, a DNS record must point the alternate domain name to the target distribution tenant. This verification step helps prevent unauthorized domain transfers, and CloudFront uses this DNS record to validate your ownership of the alternate domain name. 
@@ -68 +68 @@ In your DNS configuration, create a DNS TXT record that associates the alternate
-     * For subdomains, specify an underscore (`_`) in front of the alternate domain name. The following shows an example TXT record.
+Usually, this is the domain's CNAME record, which points to the routing endpoint of the target distribution tenant's connection group. You can also create a TXT record instead.
@@ -70 +70 @@ In your DNS configuration, create a DNS TXT record that associates the alternate
-`_www.example.com TXT d111111abcdef8.cloudfront.net`
+An apex domain, such as `example.com`, can't have a CNAME record, and an alias record that resolves the domain to the shared CloudFront IP addresses doesn't prove that you control the domain. For an apex domain, create a TXT record, or an A record that resolves the domain to the Anycast static IP addresses of the target distribution tenant's connection group.
@@ -72 +72 @@ In your DNS configuration, create a DNS TXT record that associates the alternate
-     * For an apex (or root domain), specify an underscore and period ( `_.`) in front of the domain name. The following shows an example TXT record.
+The name of the TXT record depends on the type of domain. The value is the CloudFront domain name of the target standard distribution, or the routing endpoint of the target distribution tenant's connection group, such as d111111abcdef8.cloudfront.net.
@@ -74 +74,5 @@ In your DNS configuration, create a DNS TXT record that associates the alternate
-`_.example.com TXT d111111abcdef8.cloudfront.net`
+Domain type | Domain | TXT record  
+---|---|---  
+Subdomain | `www.example.com` | `_www.example.com TXT d111111abcdef8.cloudfront.net`  
+Apex (root) domain | `example.com` | `_.example.com TXT d111111abcdef8.cloudfront.net`  
+Wildcard domain | `*.example.com` | `_*.example.com TXT d111111abcdef8.cloudfront.net`