I have 2 AWS accounts A and B. There is a hosted zone my-domain.system in account A, which was originally created by AWS.

Now I want to create same hosted zone my-domain.system in account B, but don't want to migrate anything.

I tried to copy the nameservers of hosted zone of account B to nameservers of the account A, but that messed up the DNS, so I had to roll-back.

I want to achieve like, I created a record set in hosted zone of account B, it should work and I don't have to make changes in the account A's hosted zone.


The solution to this depends on who you registered the domain with. The domain registrar is where you specify the authoritative nameservers for a domain -- not in a hosted zone.

If the registrar is also Route 53, here's the process:

In the Route 53 console, click "Registered Domains."

Select your domain.

Choose "add/edit name servers."

Enter the values for the Route 53 name servers assigned to the new hosted zone in account B, which you'll see on the right side of the screen when you click on the row of the domain from the Hosted Zones page (don't click on the actual domain name, just highlight the row).

If you registered the domain with someone other than Route 53, you'll need to make the changes on that provider's admin console.

  • My domain registrar is also Route53, I tried the same procedure also, but it messed up the DNS nameservers, and some record sets stops responding. – Rajat Gupta Jun 28 '17 at 7:45
  • I'm not sure what to tell you. If you use the correct values and the new hosted zone is configured correctly, you should get the correct results. If you want to mention the domain name, I'm sure I or someone can take a look at it for you. – Michael - sqlbot Jun 28 '17 at 16:13
  • There are 4 nameservers, and AWS only allows adding 3 more nameservers in the domain registrar. How to add last nameserver? – Rajat Gupta Jun 30 '17 at 7:38
  • You're not supposed to be adding 4 more. You need to remove the existing 4. Only one hosted zone's assigned nameservers can be specified here. – Michael - sqlbot Jun 30 '17 at 9:51
  • 1
    Create a hosted zone bar.example.com in Account B. Make a copy of the values for the 4 NS records assigned to the new zone. Then, create a new resource record bar.example.com in the existing hosted zone in Account A, record type NS, and populate it with the 4 NS records from the hosted zone in Account B. Everything except bar.example.com should work from zone A, and everything at and under bar.example.com should work from zone B. The zones can be in different accounts or the same account. Also described at stackoverflow.com/a/35785273/1695906. – Michael - sqlbot Jul 3 '17 at 15:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.