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

泪湿孤枕 提交于 2019-12-17 13:59:23

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/43660375/deleted-route-53-hosted-zone-cant-correctly-create-it-again

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!