11

I have an Amazon EC2 instance on AWS associated with an ElasticIP. I purchased domain from Route 53. It automatically created the Hosted Zone.

It worked fine after creating a Record Set for the domain name.

I have deleted that Hosted Zone but when I add it again, it is not working. What am I missing there?

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
Dawood Mujib
  • 337
  • 4
  • 14

1 Answers1

26

When you delete a hosted zone and then put it back, you're not exactly putting it back. You're just creating one similar to (but not identical to) the original.

So don't do that. But, since you already did, here's the fix:

When you click on a domain in "Hosted Zones," you see 4 name servers assigned to the hosted zone by Route 53 on the far right side of the screen.

Each time you create a hosted zone, these 4 values will almost always be different -- meaning that your hosted zone now lives on 4 new, different authoritative name servers in Route 53 than the ones it was previously deployed on, when you were using the old hosted zone.

But the Internet is still expecting the old 4 nameservers to have your records... which they don't, because you deleted the original hosted zone.

You have to update the authoritative nameservers with your domain registrar. In this case, that's actually a different part of Route 53.

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

Select your domain.

Choose "add/edit name servers."

Enter the correct values for the Route 53 name servers, which are the ones mentioned above, which you'll see when you click on the domain from the Hosted Zones page.

Most of this content is from my answer to a similar qestion at Server Fault.

Michael - sqlbot
  • 169,571
  • 25
  • 353
  • 427
  • 2
    How about the SOA, shall I change it too? Where can I find the original value? – Kai Wang Apr 18 '20 at 20:29
  • this. how do you find the original values? – friartuck Dec 03 '20 at 05:37
  • @Prof I'm not sure what you are asking. When you click on a zone in the list of zones (in the console under "Hosted Zones,") you see the 4 name servers assigned to the selected hosted zone on the far right side of the screen. – Michael - sqlbot Dec 06 '20 at 18:05