Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I have a route53 subdomain in a different Hosted Zone?

I have foo.com as a Hosted Zone with an A, NS, SOA, TXT and MX Record Sets. It works fine. Now I want a separate test.foo.com with an A entry but I want it in a separate Hosted Zone. Is it possible?

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

I want it like so in order to have a clear separation between the test and prod. This way I can break the test but the prod is still up.

Thank you!

like image 601
ddreian Avatar asked Mar 03 '16 16:03

ddreian


People also ask

Can you host a subdomain on a different host?

Yes, It's possible. For Example. You would either Contact your Host to set this, or if you have the ability to point DNS your self then do so. Just make sure that the site you want to serve on that subdomain exists on the server that it's pointing to.

Can you point a subdomain to a different name server?

Yes, You can. you will have to add the NS records for the subdomain in the DNS Manager for your TLD (Top Level Domain). For Example: In DNS Manager for TLD add NS records Like.

How do I create a Route 53 hosted zone for a subdomain?

Create a Route 53 hosted zone for the subdomain . Add records for the new subdomain to your Route 53 hosted zone. API only: Confirm that your changes have propagated to all Route 53 DNS servers. Currently, the only way to verify that changes have propagated is to use the GetChange API action.

How do I use Amazon Route 53 as a DNS service?

When you want to use Amazon Route 53 as the DNS service for a new subdomain without migrating the parent domain, you start by creating a hosted zone for the subdomain. Route 53 stores information about your subdomain in the hosted zone.

Why does Route 53 return NXDOMAIN (non-existent domain)?

In some cases, Route 53 will return NXDOMAIN (non-existent domain) when the record exists, but not in the hosted zone that DNS resolvers are submitting the query to. For more information, see Working with records . When you create a hosted zone, Route 53 automatically assigns four name servers to the zone.

How do I create a hosted zone for a subdomain?

Creating a Hosted Zone for the New Subdomain. When you want to use Amazon Route 53 as the DNS service for a new subdomain without migrating the parent domain, you start by creating a hosted zone for the subdomain. Route 53 stores information about your subdomain in the hosted zone.


1 Answers

Create a hosted zone for test.example.com.

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

Back in the master zone, create a new resource record, with hostname "test" using record type NS, and enter the 4 name servers that Route 53 assigned, in the box below.

You just delegated the "test.example.com" subdomain, and any hosts and subdomains in it, to a different hosted zone, which you can now break to your heart's content, without impacting the production records.

The hosted zone for the subdomain can be in the same account or a different account.

like image 94
Michael - sqlbot Avatar answered Sep 21 '22 07:09

Michael - sqlbot