Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deleted Route 53 hosted zone, can't correctly create it again

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?

like image 942
Dawood Mujib Avatar asked Apr 27 '17 14:04

Dawood Mujib


People also ask

What happens if I delete a hosted zone?

If you delete a hosted zone, you can't undelete it. You must create a new hosted zone and update the name servers for your domain registration, which can require up to 48 hours to take effect.

Why is Route 53 not working?

If your previous registrar offered free DNS service with domain registration, the registrar might have stopped providing DNS service when you transferred domain registration to Route 53.


1 Answers

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.

like image 79
Michael - sqlbot Avatar answered Oct 05 '22 10:10

Michael - sqlbot