
I Tried Out Change Guardrails and Change History in Route 53 Advanced Hosted Zones
This page has been translated by machine translation. View original
Introduction
On November 20, 2026, Amazon Route 53 Advanced Hosted Zones was announced.
Advanced Hosted Zones is a new tier of hosted zones. It includes Change Guardrails that reject erroneous record deletions, Change History that retains changes on a per-record basis, and Public DNS Fallback for private hosted zones.
In this article, I introduce the results of trying ALIAS_TARGET_CHECK, one of the Change Guardrails, and Change History using the CLI.
Public DNS Fallback will be covered in a separate article.
Test Environment
- AWS CLI: 2.42.1 (a version that includes subcommands such as
update-hosted-zone-tier) - Hosted zone: a newly created public hosted zone
- Enabled guardrail: ALIAS_TARGET_CHECK
- CloudFormation stack region: Tokyo (ap-northeast-1)
Creating an Advanced Hosted Zone
You can create an Advanced hosted zone by passing the tier to --hosted-zone-config of create-hosted-zone. The guardrails to enable are specified with --change-guardrails. For --caller-reference, specify any unique string.
aws route53 create-hosted-zone \
--name xxx.example.com \
--caller-reference r53-adv-1795276324 \
--hosted-zone-config HostedZoneTier=ADVANCED \
--change-guardrails Name=ALIAS_TARGET_CHECK,Status=ENABLED
Here is an excerpt of the tier and Features parts from the response.
{
"HostedZone": {
"Name": "xxx.example.com.",
"Config": {
"HostedZoneTier": "ADVANCED"
},
"Features": {
"ChangeHistory": {
"Status": "ENABLED",
"RetentionStartsAt": "2026-11-21T15:52:05.324000+00:00"
},
"ChangeGuardrails": [
{
"Name": "NS_OCCLUSION_CHECK",
"Status": "DISABLED"
},
{
"Name": "NS_DELEGATION_AUTHORITY_CHECK",
"Status": "ENABLED"
},
{
"Name": "NS_FORMAT_CHECK",
"Status": "ENABLED"
},
{
"Name": "ALIAS_TARGET_CHECK",
"Status": "ENABLED"
},
{
"Name": "ACTIVE_RECORD_CHECK",
"Status": "DISABLED"
},
{
"Name": "ACTIVE_DELEGATION_CHECK",
"Status": "DISABLED"
}
]
}
}
}
Behavior of ALIAS_TARGET_CHECK
In the Advanced hosted zone I created, I create an A record app and an alias record www that points to it. The change batch JSON is included in a collapsed section at the end of this section.
aws route53 change-resource-record-sets \
--hosted-zone-id <hosted-zone-id> \
--change-batch file://adv-create-records.json
When I sent a change batch (adv-delete-app.json) that DELETEs only app with the same command, the request was rejected.
aws: [ERROR]: An error occurred (InvalidChangeBatch) when calling the ChangeResourceRecordSets operation: [RRSet with DNS name app.xxx.example.com., type A. ALIAS_TARGET_CHECK: The requested change cannot be completed because it would delete a record that is still referenced by alias record 'www.xxx.example.com.'. Remove or retarget the referencing alias record(s), or delete them in the same batch, before deleting this record.]
When I checked with list-resource-record-sets after the rejection, app (A, 192.0.2.10) and www (alias) remained in the same state as before the deletion.
A batch (adv-delete-app-and-create-new.json) that added a CREATE of another record new to the DELETE of app was also rejected with the same error as above. Listing the record names showed that new was not created, so the whole batch was rejected.
aws route53 list-resource-record-sets \
--hosted-zone-id <hosted-zone-id> \
--query "ResourceRecordSets[?Type!='NS' && Type!='SOA'].Name"
[
"app.xxx.example.com.",
"www.xxx.example.com."
]
Following the remedy given in the error message, when I sent the DELETEs of www and app in a single batch (adv-delete-www-and-app.json), the deletion succeeded.
aws route53 change-resource-record-sets \
--hosted-zone-id <hosted-zone-id> \
--change-batch file://adv-delete-www-and-app.json
Change batch files
For the HostedZoneId of the alias record, specify the ID of the hosted zone you created.
adv-create-records.json
{
"Comment": "create app and www alias",
"Changes": [
{"Action": "CREATE", "ResourceRecordSet": {"Name": "app.xxx.example.com", "Type": "A", "TTL": 60, "ResourceRecords": [{"Value": "192.0.2.10"}]}},
{"Action": "CREATE", "ResourceRecordSet": {"Name": "www.xxx.example.com", "Type": "A", "AliasTarget": {"HostedZoneId": "Z0123456789EXAMPLE", "DNSName": "app.xxx.example.com", "EvaluateTargetHealth": false}}}
]
}
adv-delete-app.json
{
"Comment": "delete app only",
"Changes": [
{"Action": "DELETE", "ResourceRecordSet": {"Name": "app.xxx.example.com", "Type": "A", "TTL": 60, "ResourceRecords": [{"Value": "192.0.2.10"}]}}
]
}
adv-delete-app-and-create-new.json
{
"Comment": "create new and delete app",
"Changes": [
{"Action": "CREATE", "ResourceRecordSet": {"Name": "new.xxx.example.com", "Type": "A", "TTL": 60, "ResourceRecords": [{"Value": "192.0.2.20"}]}},
{"Action": "DELETE", "ResourceRecordSet": {"Name": "app.xxx.example.com", "Type": "A", "TTL": 60, "ResourceRecords": [{"Value": "192.0.2.10"}]}}
]
}
adv-delete-www-and-app.json
{
"Comment": "delete www alias and app in one request",
"Changes": [
{"Action": "DELETE", "ResourceRecordSet": {"Name": "www.xxx.example.com", "Type": "A", "AliasTarget": {"HostedZoneId": "Z0123456789EXAMPLE", "DNSName": "app.xxx.example.com", "EvaluateTargetHealth": false}}},
{"Action": "DELETE", "ResourceRecordSet": {"Name": "app.xxx.example.com", "Type": "A", "TTL": 60, "ResourceRecords": [{"Value": "192.0.2.10"}]}}
]
}
Updating with CloudFormation
I create an Advanced hosted zone with a template that specifies HostedZoneTier and HostedZoneFeatures, and manage app and www in the same template.
cfn-v1.yaml
AWSTemplateFormatVersion: '2010-09-09'
Resources:
Zone:
Type: AWS::Route53::HostedZone
Properties:
Name: cfn.xxx.example.com
HostedZoneConfig:
Comment: advanced hosted zone managed by CloudFormation
HostedZoneTier: ADVANCED
HostedZoneFeatures:
ChangeGuardrails:
- Name: ALIAS_TARGET_CHECK
Status: ENABLED
AppRecord:
Type: AWS::Route53::RecordSet
Properties:
HostedZoneId: !Ref Zone
Name: app.cfn.xxx.example.com
Type: A
TTL: '60'
ResourceRecords:
- 192.0.2.10
WwwRecord:
Type: AWS::Route53::RecordSet
DependsOn: AppRecord
Properties:
HostedZoneId: !Ref Zone
Name: www.cfn.xxx.example.com
Type: A
AliasTarget:
HostedZoneId: !Ref Zone
DNSName: app.cfn.xxx.example.com
EvaluateTargetHealth: false
aws cloudformation deploy --stack-name r53-adv-cfn --template-file cfn-v1.yaml --no-fail-on-empty-changeset
The deploy command displayed Successfully created/updated stack and finished normally, and the three resources Zone, AppRecord, and WwwRecord reached CREATE_COMPLETE.
Next, I update the stack with cfn-v2-remove-app.yaml, which is cfn-v1.yaml with the AppRecord resource and the DependsOn of WwwRecord removed.
aws cloudformation deploy --stack-name r53-adv-cfn --template-file cfn-v2-remove-app.yaml --no-fail-on-empty-changeset
The update deploy command also displayed Successfully created/updated stack and finished normally. The stack events are retrieved with the following command.
aws cloudformation describe-stack-events \
--stack-name r53-adv-cfn \
--query 'reverse(StackEvents)[].{Time:Timestamp,Logical:LogicalResourceId,Status:ResourceStatus,Reason:ResourceStatusReason}' \
--output json
From the output, I extracted the event where the deletion of app failed and the event of the final state of the stack.
[
{
"Logical": "AppRecord",
"Status": "DELETE_FAILED",
"Reason": "Resource handler returned message: \"[RRSet with DNS name app.cfn.xxx.example.com., type A. ALIAS_TARGET_CHECK: The requested change cannot be completed because it would delete a record that is still referenced by alias record 'www.cfn.xxx.example.com.'. Remove or retarget the referencing alias record(s), or delete them in the same batch, before deleting this record.] (Service: Route53, Status Code: 400, Request ID: <request-id>) (SDK Attempt Count: 1)\" (RequestToken: <token>, HandlerErrorCode: InvalidRequest)"
},
{
"Logical": "r53-adv-cfn",
"Status": "UPDATE_COMPLETE",
"Reason": "Update successful. One or more resources could not be deleted."
}
]
The deletion of AppRecord was attempted three times at intervals of about 3 minutes, and every attempt resulted in DELETE_FAILED. As a result, the deploy for the update took about 6 minutes. When I listed the record names in the zone after the update, both app.cfn.xxx.example.com. and www.cfn.xxx.example.com. remained. Because records removed from the template remain in the zone, the success of the deploy alone does not tell you whether the template and the actual records match. A deletion failure can be confirmed by DELETE_FAILED in the stack events.
Change History
With list-hosted-zone-change-batches, you can retrieve the changes applied to a zone in units of batches.
aws route53 list-hosted-zone-change-batches --hosted-zone-id <hosted-zone-id>
{
"ChangeBatchSummaries": [
{
"ChangeId": "C0123456789EXAMPLE",
"Operation": "ChangeResourceRecordSets",
"SubmittedAt": "2026-11-21T15:52:55.094000+00:00",
"SubmittedBy": "arn:aws:sts::111122223333:assumed-role/Admin/my-session",
"Comment": "delete www alias and app in one request",
"ChangeCount": 2
},
{
"ChangeId": "C1123456789EXAMPLE",
"Operation": "ChangeResourceRecordSets",
"SubmittedAt": "2026-11-21T15:52:13.478000+00:00",
"SubmittedBy": "arn:aws:sts::111122223333:assumed-role/Admin/my-session",
"Comment": "create app and www alias",
"ChangeCount": 2
},
{
"ChangeId": "C2123456789EXAMPLE",
"Operation": "CreateHostedZone",
"SubmittedAt": "2026-11-21T15:52:05.358000+00:00",
"SubmittedBy": "arn:aws:sts::111122223333:assumed-role/Admin/my-session",
"ChangeCount": 0
}
]
}
The output is shown with the RequestId of each entry omitted. The two requests rejected by ALIAS_TARGET_CHECK do not appear in the list.
By passing a ChangeId from the list to get-hosted-zone-change-batch, you can retrieve the contents of that batch's changes. ChangeBatch.Changes contains the Action of each change and the entire contents of the record.
aws route53 get-hosted-zone-change-batch \
--hosted-zone-id <hosted-zone-id> \
--change-id <change-id>
Changes to a specific record are retrieved by passing the record name and type to list-resource-record-set-changes. When I specified www, two entries, DELETE and CREATE, were returned in newest-first order.
aws route53 list-resource-record-set-changes \
--hosted-zone-id <hosted-zone-id> \
--record-name www.xxx.example.com \
--record-type A
{
"ResourceRecordSetChanges": [
{
"Operation": "ChangeResourceRecordSets",
"SubmittedAt": "2026-11-21T15:52:55.094000+00:00",
"Action": "DELETE",
"ResourceRecordSet": {
"Name": "www.xxx.example.com.",
"Type": "A",
"AliasTarget": {
"DNSName": "app.xxx.example.com.",
"EvaluateTargetHealth": false
}
}
},
{
"Operation": "ChangeResourceRecordSets",
"SubmittedAt": "2026-11-21T15:52:13.478000+00:00",
"Action": "CREATE",
"ResourceRecordSet": {
"Name": "www.xxx.example.com.",
"Type": "A",
"AliasTarget": {
"DNSName": "app.xxx.example.com.",
"EvaluateTargetHealth": false
}
}
}
]
}
The output is shown with the ChangeId, SubmittedBy, and RequestId of each entry and the HostedZoneId of the AliasTarget omitted.
For the zone created by CloudFormation as well, a total of three entries were recorded: one CreateHostedZone, and one creation each for app and www (ChangeCount was 1 for both).
Changing the Tier of an Existing Zone
The tier of an already created hosted zone can be changed with update-hosted-zone-tier. Both changes, STANDARD to ADVANCED and ADVANCED to STANDARD, succeeded.
To change from STANDARD to ADVANCED, run the following commands. ALIAS_TARGET_CHECK remains DISABLED even after the change, so enable it with update-hosted-zone-features.
aws route53 update-hosted-zone-tier --hosted-zone-id <hosted-zone-id> --hosted-zone-tier ADVANCED
aws route53 update-hosted-zone-features --hosted-zone-id <hosted-zone-id> --change-guardrails Name=ALIAS_TARGET_CHECK,Status=ENABLED
When returning from ADVANCED to STANDARD, disable ALIAS_TARGET_CHECK first.
aws route53 update-hosted-zone-features --hosted-zone-id <hosted-zone-id> --change-guardrails Name=ALIAS_TARGET_CHECK,Status=DISABLED
aws route53 update-hosted-zone-tier --hosted-zone-id <hosted-zone-id> --hosted-zone-tier STANDARD
Advanced Pricing
The price of an Advanced hosted zone is the price of a Standard hosted zone plus the Advanced surcharge. The following is as stated on the Route 53 pricing page as of November 22, 2026.
| Item | Price |
|---|---|
| Standard hosted zone (first 25 zones) | $0.50/month |
| Standard hosted zone (26th zone onward) | $0.10/month |
| Advanced surcharge | $5.00/month (prorated hourly) |
| Records beyond 10,000 per zone | $0.0015/month per record |
NS-related guardrails incur no additional charge for all zones, including Standard. The Advanced surcharge applies to the deletion guardrails, Change History, and Public DNS Fallback for private hosted zones. Up to 10,000 records per zone are included in the price.
A tier change takes effect immediately. If you change it partway through a month, the Standard hosted zone price is charged in full. The Advanced surcharge is charged only for the hours the zone was Advanced, and stops when you return it to Standard.
Summary
With Amazon Route 53 Advanced Hosted Zones, I was able to confirm change protection through Change Guardrails and the change history through Change History.
Incidents from DNS record updates, especially mistaken changes or accidental deletions of real service endpoints, can lead to service outages.
If you manage hosted zones with IaC and can also track history in a repository, Standard may be sufficient.
In addition, the November 2026 update made protection on a per-record-set basis possible as well.
On the other hand, if you have many important validation records created from the GUI by wizards such as ACM or SES, or if multiple people may make changes, Change Guardrails and Change History of Advanced Hosted Zones are effective. I recommend evaluating whether the monthly cost of Advanced is justified.
