I Tried Out Public DNS Fallback for Route 53 Private Hosted Zones

I Tried Out Public DNS Fallback for Route 53 Private Hosted Zones

Enabling public DNS fallback on a Route 53 private hosted zone lets names not in the zone resolve using public DNS responses, so you no longer need to register the same records in both public and private hosted zones.
2026.11.24

This page has been translated by machine translation. View original

Introduction

On November 20, 2026, it was announced that public DNS fallback is now available for Amazon Route 53 private hosted zones.

https://aws.amazon.com/about-aws/whats-new/2026/11/route-53-public-dns-fallback/

When you enable public DNS fallback, queries for names that are not in the private hosted zone are resolved using public DNS responses instead of returning NXDOMAIN. This article walks through the steps to enable it and shows the results of querying the same name with dig before and after enabling it.

Test environment

  • Region: Tokyo (ap-northeast-1)
  • AWS CLI: 2.42.1
  • dig: DiG 9.18.50
  • Query target: VPC Resolver
  • Test EC2: t3.micro, Amazon Linux 2023, default VPC
  • Private hosted zone: example.com (associated with the default VPC)
  • Public DNS side: A records for www and app in a public hosted zone with the same domain name

The domain names and IP addresses in this article have been replaced with example values.

Steps to enable it

The Advanced tier is a new hosted zone tier offered as Advanced Hosted Zones. It also includes Change Guardrails, which reject erroneous record deletions, and Change History, which keeps a history of changes per record. I tried these two features in the following article.

https://dev.classmethod.jp/articles/route53-advanced-hosted-zones-guardrails-history/

Creating the private hosted zone

aws route53 create-hosted-zone --name example.com --caller-reference <unique-string> --vpc VPCRegion=ap-northeast-1,VPCId=<vpc-id> --hosted-zone-config Comment=r53-fallback-verify,PrivateZone=true

Immediately after creation, the zone had a HostedZoneTier of STANDARD and a PublicDNSFallbackStatus of DISABLED.

Changing to the Advanced tier

aws route53 update-hosted-zone-tier --hosted-zone-id <hosted-zone-id> --hosted-zone-tier ADVANCED

When I checked with get-hosted-zone, HostedZoneTier had become ADVANCED, and PublicDNSFallbackStatus remained DISABLED.

Enabling public DNS fallback

aws route53 update-hosted-zone-features --hosted-zone-id <hosted-zone-id> --enable-public-dns-fallback

You can check the status with the following command.

aws route53 get-hosted-zone --id <hosted-zone-id> --query HostedZone.Features.PublicDNSFallbackStatus --output text

Name resolution results

From the EC2 instance in the VPC, I queried www.example.com, which has an A record in the public hosted zone.

Before enabling

$ dig www.example.com A +noall +comments +answer +authority +stats
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 28663
;; AUTHORITY SECTION:
example.com.		900	IN	SOA	ns-1536.awsdns-00.co.uk. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400

Even for a name that has an A record in the public hosted zone, NXDOMAIN was returned because it did not exist in the private hosted zone.

After enabling

Starting from the time I ran the enable command, I repeatedly queried the same www.example.com.

Time since enabling Result
17 seconds to 3 minutes 57 seconds later NXDOMAIN
4 minutes 46 seconds later NOERROR

This is the response at 4 minutes 46 seconds.

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16390
www.example.com.	300	IN	A	203.0.113.10

The roughly 5 minutes it took for the response to become NOERROR is probably due to the resolver's cache.

Using it together with private hosted zone records

I added one A record to the zone to create an internal-facing name.

aws route53 change-resource-record-sets --hosted-zone-id <hosted-zone-id> --change-batch file://private-record.json
private-record.json
{
  "Comment": "one private record",
  "Changes": [
    {
      "Action": "CREATE",
      "ResourceRecordSet": {
        "Name": "internal.example.com",
        "Type": "A",
        "TTL": 60,
        "ResourceRecords": [{ "Value": "10.0.0.10" }]
      }
    }
  ]
}

I then queried the added internal.example.com and app.example.com, which is not in the zone, one after the other with dig, and extracted only the status lines and A lines.

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37557
internal.example.com.	60	IN	A	10.0.0.10

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45195
app.example.com.	266	IN	A	203.0.113.20

internal.example.com was resolved with the value of the private hosted zone record, and app.example.com was resolved with the value from the public hosted zone. internal.example.com is a name that exists only in the private hosted zone, and querying it via 8.8.8.8 returned NXDOMAIN.

Summary

I confirmed that when public DNS fallback is enabled on a Route 53 private hosted zone, names that are not in the zone can be resolved using public DNS responses.

When you want a name that is also used publicly to be resolved with an internal-facing response only from within the VPC, you may create a private hosted zone and a public hosted zone with the same domain name.

In a VPC associated with a private hosted zone, only the private hosted zone is used for name resolution of that domain name. Therefore, to use records already registered in the public hosted zone from within the VPC, you had to register the same records in the private hosted zone as well, and managing them in two places could become a problem.

This update resolves that problem. You only need to register in the private hosted zone the records that require internal-facing responses, and names not in the zone can be resolved using public DNS responses.

Using it requires changing to the Advanced tier, which incurs an additional charge of $5 per month. If managing a private hosted zone and a public hosted zone with the same domain name in two places is a problem for you, give this update a try.

References

https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/hosted-zone-private-public-dns-fallback.html

Share this article

AWSのお困り事はクラスメソッドへ