dns - 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?
解决方案
那么添加域名服务器是否等同于设置 DNS 记录?
嗯,是的,也不是。
是的,“域名服务器”设置实际上会在 DNS 中创建“NS”类型的记录——除非它们不在您的区域中;他们在父区。例如,如果您的域是example.com
,则区域必须知道其名称服务器地址com
。
(也就是说,您自己的区域也有相同的“NS”记录,但它们并不是真正重要的记录。)
但另一方面,不,设置名称服务器(NS 记录)与创建 A/AAAA 类型记录的目的完全不同。“A”记录直接指向托管网站的服务器,而“NS”记录增加了间接性——“NS”记录指向保存“A”记录的服务器。
你能告诉我当我输入“www.example.com”时发生的事情的完整流程,包括 DNS 和区域文件查找。
- 您的操作系统(具有“存根”解析器)将查询发送到“完整”或“递归”解析器。
- 递归解析器具有“”(DNS 根)的内置名称服务器地址列表。
- 解析器将查询发送到根名称服务器,接收对“com”域的名称服务器的引用(“我没有该记录,但我有 com./NS 记录”)。
- 解析器将相同的查询发送到“com”域名服务器,再次接收到“example.com”域的域名服务器的引用。
- 解析器将相同的查询发送到“example.com”名称服务器,并最终收到实际答案。
- 递归解析器将答案返回给您。
请参阅现有文档:
推荐阅读
- excel - 当列出的代码经过测试时,我得到一个对象不支持方法错误
- google-apps-script - 编辑其他电子表格时复制现有电子表格的脚本
- google-maps-sdk-ios - 如何在 Google iOS SDK 中自定义 myLocationButton 控件?
- javascript - h1“hello world”文本隐藏在导航栏后面我该如何解决这个问题
- r - 使用 extRemes 的一般帕累托的经验绘图位置
- python - Python周期性边界条件
- javascript - 将 JavaScript 数组中的随机元素插入 html 字符串
- javascript - Vue webpack动态导入需要不起作用
- decompiler - 是否可以从 .unityweb 文件中获取 dll?
- scala - Akka 和阻塞并行处理