[英]How to get the IP address of DNS Nameserver
When I do an nslookup on the net. 当我在网上进行nslookup时。 zone, I get the following output:
区域,我得到以下输出:
nslookup -type=soa net 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
net
origin = a.gtld-servers.net
mail addr = nstld.verisign-grs.com
serial = 1542217316
refresh = 1800
retry = 900
expire = 604800
minimum = 86400
Authoritative answers can be found from:
This means that in order to get DNS records for the net. 这意味着为了获取网络的DNS记录。 zone, one should query the DNS Server a.gtld-servers.net.
区域,则应查询DNS服务器a.gtld-servers.net。 However, the IP Address of a.gtld-servers.net is not given.
但是,没有提供a.gtld-servers.net的IP地址。 This results in a catch-22, because in order to get the IP address of any subzone in the net.
这导致catch 22,因为为了获取网络中任何子区域的IP地址。 zone, one should query a.gtld-servers.net.
区域,则应查询a.gtld-servers.net。
So my question is, how to get out of this catch-22? 所以我的问题是,如何摆脱22号陷阱? How can I get the IP address of a.gtld-servers.net without having to do another DNS request?
如何获得a.gtld-servers.net的IP地址而无需执行其他DNS请求?
The root server addresses can be found in a file downloaded from iana 根服务器地址可以在从iana下载的文件中找到
This means that in order to get DNS records for the net.
这意味着为了获取网络的DNS记录。 zone, one should query the DNS Server a.gtld-servers.net
区域,则应查询DNS服务器a.gtld-servers.net
You could, and at least initially, probably would, but the root servers don't move around frequently, so once you got the ip address for .net server, for example, you would use the cached value. 您可以并且至少在最初可能会,但是根服务器不会经常移动,因此,例如,一旦获得.net服务器的ip地址,就可以使用缓存的值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.