Skip to main content

Posts

Showing posts with the label AWS

Fix the NS Records of Your AWS Registered Domains and Hosted Zones

If you are using AWS Route 53 to manage your domains and DNS records, you may encounter a situation where the NS records of your registered domains and hosted zones are not consistent. This can cause problems with your domain’s DNS resolution and affect your website’s availability and performance. In this blog post, I will explain what are the NS records of registered domains and hosted zones, how they differ, and how to fix them if they are not aligned. contact email:  tcpfast@gmail.com  What are the NS records of registered domains and hosted zones? NS stands for name server, which is a server that translates domain names into IP addresses. NS records are DNS records that specify which name servers are responsible for resolving a domain name. There are two types of NS records that you need to be aware of when using Route 53: the NS records of registered domains and the NS records of hosted zones. The NS records of registered domains are the ones that determine which DNS serv...

一文看懂,AWS Registered domains 的 NS 字段 与 Hosted zone 的 NS 字段

Registered domains 的 NS 字段 与 Hosted zone 的 NS 字段 的 区别是: - Registered domains 的 NS 字段 是指定您的域名应该由哪些 DNS 服务器来解析的。它决定了您的域名的 DNS 请求被发送到哪个 DNS 服务商,例如 Route 53。 - Hosted zone 的 NS 字段 是由 Route 53 自动生成的,反映了 Route 53 为您的托管区域分配的名称服务器的地址。它决定了您的域名的 DNS 解析结果是由哪些 DNS 服务器提供的。 简单来说,Registered domains 的 NS 字段 是您的域名的 DNS 解析的入口,而 Hosted zone 的 NS 字段 是您的域名的 DNS 解析的出口。 当浏览器请求一个域名,例如 tcpbuilder.com 时,是如何使用 Registered domains 的 NS 字段 与 Hosted zone 的 NS 字段 的,具体过程如下: - 浏览器首先会检查本地缓存或者 hosts 文件,看是否有 abc.com 对应的 IP 地址。如果有,就直接访问该 IP 地址。如果没有,就需要进行 DNS 解析。 - 浏览器会向本地配置的 DNS 服务器(通常是运营商提供的)发送一个查询请求,询问 tcpbuilder.com 的 IP 地址。 - DNS 服务器会根据 tcpbuilder.com 的 TLD(.com)找到对应的根域名服务器,向其发送查询请求。 - 根域名服务器会返回负责 .com 域的顶级域名服务器的地址,DNS 服务器再向其发送查询请求。 - 顶级域名服务器会返回负责 abc.com 域的权威域名服务器的地址,DNS 服务器再向其发送查询请求。 - 权威域名服务器会返回 abc.com 域的 IP 地址,DNS 服务器将其缓存并返回给浏览器。 - 浏览器根据得到的 IP 地址,与 tcpbuilder.com 域的 web 服务器建立 TCP 连接,发起 HTTP 请求。 在这个过程中,Registered domains 的 NS 字段 和 Hosted zone 的 NS 字段 起到了不同的作用: - Registered domains 的 NS 字段 是在顶级域名服务器 中记录的,用于指定 tcpbui...