简体   繁体   English

DNS 托管区域未生效 - AWS Route53

[英]DNS hosted zone not taking effect - AWS Route53

I have recently transferred my domain name trademarklawexplained.com from One.com to AWS.我最近将我的域名trademarklawexplained.com 从 One.com 转移到 AWS。

I have the following set-up in Route53:我在 Route53 中有以下设置:

Route53 托管区域设置

For some reason, none of my records (SOA, NS and A) have had any effect.出于某种原因,我的记录(SOA、NS 和 A)都没有任何影响。 trademarklawexplained.com does not map to 35.176.22.92 , nor does it even look at the name server (I tested it with this tool ) tradelawexplained.com没有 map 到35.176.22.92 ,它甚至没有看名称服务器(我用这个工具测试过)

Have I set up my hosted zone incorrectly, should I somehow publish it, or is the issue with One.com?我是否错误地设置了我的托管区域,我应该以某种方式发布它,还是 One.com 的问题?

If someone could point me in the right direction to troubleshoot it would be greatly appreciated.如果有人能指出我正确的方向来解决问题,将不胜感激。

Figured it out in the end… 最终想通了……

For a name server to be associated with a Route53 hosted zone, do the following: 要使名称服务器与Route53托管区域相关联,请执行以下操作:

  1. Create a Hosted zone for your domain name. 为您的域名创建一个托管区域。 Note the NS record. 注意NS记录。
  2. Go to Registered Domains > example.com > Add or edit name servers > Add the name servers from step 1. 转到注册域名 > example.com > 添加或编辑名称服务器 >从步骤1开始添加名称服务器。

选择您在AWS Route53上的注册域 编辑名称服务器

When transferring a domain to AWS, it keeps the old NS record. 将域转移到AWS时,它将保留旧的NS记录。 Make sure to change it as per step 2. 确保按照步骤2进行更改。

Checking the records it is still pointing to old records. 检查记录,它仍然指向旧记录。

You need to update the DNS servers with your domain registrar for it to take effect. 您需要使用您的域名注册商来更新DNS服务器,以使其生效。

If the DNS servers are updated, you might need to wait for the TTL time defined with the previous registrar to expire. 如果DNS服务器已更新,则可能需要等待以前的注册服务商定义的TTL时间到期。 DNS servers can cache those records until that TTL time defined in those NS records. DNS服务器可以缓存这些记录,直到这些NS记录中定义的TTL时间为止。

How long have you waited? 你等了多久? DNS records have a TTL (Time To Live). DNS记录具有TTL(生存时间)。 DNS servers around the world will cache your domain records until the TTL expires. 世界各地的DNS服务器将缓存您的域记录,直到TTL过期为止。 For example, in your screenshot the TTL for your Name Servers is 172800 seconds which is 48 hours. 例如,在屏幕快照中,名称服务器的TTL为172800秒,即48小时。 In general it takes two or three days for the Internet to start caching your new domain records, sometimes longer. 通常,Internet需要两到三天的时间才能开始缓存新的域记录,有时甚至更长。 If it has been more than a week, then there is a problem. 如果已经超过一周,那就有问题了。

i had the similar issues, i had to wait for about 2 days to get the A record have a correct routing.我有类似的问题,我不得不等待大约 2 天才能让 A 记录有正确的路由。 However, the A record of alias type to your load-blancer works almost immediately.但是,负载平衡器的别名类型的 A 记录几乎可以立即工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM