> ns1.example.com – > 192.0.2.1
> ns2.example.com – > 192.0.2.2
假设没有域使用这些名称服务器用于DNS.如何在我的R帐户之外验证名称服务器是否已在.TLD注册表中成功注册?
例如,VeriSign Inc’s WHOIS页面允许您查找已注册的.COM名称服务器:
Server Name: NS1.HOSTGATOR.COM IP Address: 67.18.54.2 Registrar: ENOM,INC. Whois Server: whois.enom.com Referral URL: http://www.enom.com
为了澄清,我不打算验证域设置使用的名称服务器,例如:
Domain Name: HOSTGATOR.COM Registrar: ENOM,INC. Whois Server: whois.enom.com Referral URL: http://www.enom.com
Name Server: NS1.P13.DYNECT.NET Name Server: NS2.P13.DYNECT.NET Name Server: NS3.P13.DYNECT.NET Name Server: NS4.P13.DYNECT.NET
Status: clientTransferProhibited Updated Date: 05-jan-2013 Creation Date: 22-oct-2002 Expiration Date: 22-oct-2015
相反,我正在寻找一种方法来查询注册表中的单个注册名称服务器(例如ns1.example.tld),以找到注册表为此名称服务器记录的IP地址(例如123.456.789.001).
更新:
我已经联系VeriSign进行了输入,结果发现VeriSign对名称服务器的WHOIS查询是专有的.以下是他们的回复:
In regard to your question whether you would be able to obtain any
information regarding a nameserver which is registered at the registry
but not currently associated with any domain,you will unfortunately
not be able to obtain this information via alternative routes e.g. by
performing a DiG. Nameservers are only published to the zone if they
are attached to a domain,hence you won’t be able to obtain this
information unless said nameserver is associated with a domain. Also,
a DiG may provide you with a listing of nameservers associated with a
domain and their respective IP’s,etc.— Benjamin,VeriSign,Inc. Customer Service
下面的@Iian’s answer的第二部分是正确的.名称服务器必须与域关联,以便查找注册表为该名称服务器记录的IP地址.
解决方法
dig 8.8.8.8 NS example.com
dig +short ns1.example.tld 123.456.789.001
或者如果您使用的是Windows,则可以使用nslookup
nslookup > server 8.8.8.8 > set type=ns > example.com
然后类似于上面
nslookup ns1.example.tld
将为您提供IP地址
如果要直接查询tld,那么
dig ns tld
将提供TLD名称服务器的列表,然后您可以直接查询它们以获取example.tld的ns记录
dig @ns666.tld ns example.tld