Can I have a route53 subdomain in another hosting zone?

I have foo.com as a Hosted Zone with recordsets A, NS, SOA, TXT and MX. It is working fine. Now I want a separate test.foo.com with an A record, but I want it in a separate hosting zone. Is it possible?

If I put an A record in foo.com Hosted Zone with the value test.foo.com, it works, but I want it in a separate hosting zone.

I want this to be so that there is a clear separation between test and prod. This way I can break the test, but the product still works.

Thanks!

+6
source share
1 answer

Create a hosted zone for test.example.com .

Note the 4 name servers that Route 53 assigns to it the new hosted zone.

Return to the main zone, create a new resource record with the name "test" with a name of type NS and enter the 4 name servers assigned by Route 53 in the field below.

You simply delegated the subdomain "test.example.com" and any hosts and subdomains in it to another placement zone, which you can now split into the contents of your heart without affecting production records.

+10
source

All Articles