首页 > 解决方案 > DNS Records and Nameservers

问题描述

When I deploy my website on Google App Engine and add a custom domain(that I own from GoDaddy.com or name.com or namecheap.com etc.), GAE provides me with A, AAAA, and CNAME records which I need to add in the DNS record configuration in GoDaddy.com/name.com/namecheap.com website.

Similarly, When I deploy my website on Digitalocean and add a custom domain(that I own from GoDaddy.com or name.com or namecheap.com etc.), it provides me with nameservers(ns1.digitalocean.com,ns2.digitalocean.com etc.) which I need to add in the Nameserver configuration in GoDaddy.com/name.com/namecheap.com website.

So is adding nameservers equivalent to setting DNS records?

标签: dnsweb-hostingnameservers

解决方案


那么添加域名服务器是否等同于设置 DNS 记录?

嗯,是的,也不是。

是的,“域名服务器”设置实际上会在 DNS 中创建“NS”类型的记录——除非它们不在您的区域中;他们在区。例如,如果您的域是example.com,则区域必须知道其名称服务器地址com

(也就是说,您自己的区域有相同的“NS”记录,但它们并不是真正重要的记录。)

但另一方面,不,设置名称服务器(NS 记录)与创建 A/AAAA 类型记录的目的完全不同。“A”记录直接指向托管网站的服务器,而“NS”记录增加了间接性——“NS”记录指向保存“A”记录的服务器。

你能告诉我当我输入“www.example.com”时发生的事情的完整流程,包括 DNS 和区域文件查找。

  1. 您的操作系统(具有“存根”解析器)将查询发送到“完整”或“递归”解析器。
  2. 递归解析器具有“”(DNS 根)的内置名称服务器地址列表。
  3. 解析器将查询发送到根名称服务器,接收对“com”域的名称服务器的引用(“我没有该记录,但我有 com./NS 记录”)。
  4. 解析器将相同的查询发送到“com”域名服务器,再次接收到“example.com”域的域名服务器的引用。
  5. 解析器将相同的查询发送到“example.com”名称服务器,并最终收到实际答案。
  6. 递归解析器将答案返回给您。

请参阅现有文档:


推荐阅读