我意识到有些人可能认为这不是完全有建设性的,但是我想知道为什么你不能解决com,org,us,ru或任何其他顶级域名?我认为这是一个学习练习,因为我对DNS工作方式的理解可能存在一些漏洞.例如,我试过;
nslookup com Server: dns.server.com Address: 123.123.123.123 *** dns.server.com cant find com: Non-existent domain
我一直认为.com顶级域名下的所有其他站点都依赖于存在名为com的实际域名.至少,我认为它跟踪.com域下的现有域.我错过了什么?
解决方法
他们确实依赖于com. – 但它没有A记录,你不能那样查找它.尝试寻找NS记录:
nslookup > set type=NS > com. Server: 12.12.12.12 Address: 12.12.12.12#53 Non-authoritative answer: com nameserver = b.gtld-servers.net. com nameserver = f.gtld-servers.net. com nameserver = j.gtld-servers.net. com nameserver = g.gtld-servers.net. com nameserver = k.gtld-servers.net. com nameserver = e.gtld-servers.net. com nameserver = l.gtld-servers.net. com nameserver = d.gtld-servers.net. com nameserver = i.gtld-servers.net. com nameserver = m.gtld-servers.net. com nameserver = a.gtld-servers.net. com nameserver = h.gtld-servers.net. com nameserver = c.gtld-servers.net. Authoritative answers can be found from: b.gtld-servers.net internet address = 192.33.14.30 b.gtld-servers.net has AAAA address 2001:503:231d::2:30 f.gtld-servers.net internet address = 192.35.51.30 j.gtld-servers.net internet address = 192.48.79.30 g.gtld-servers.net internet address = 192.42.93.30 k.gtld-servers.net internet address = 192.52.178.30 e.gtld-servers.net internet address = 192.12.94.30 l.gtld-servers.net internet address = 192.41.162.30 d.gtld-servers.net internet address = 192.31.80.30 i.gtld-servers.net internet address = 192.43.172.30 m.gtld-servers.net internet address = 192.55.83.30 a.gtld-servers.net internet address = 192.5.6.30 a.gtld-servers.net has AAAA address 2001:503:a83e::2:30 h.gtld-servers.net internet address = 192.54.112.30 c.gtld-servers.net internet address = 192.26.92.30
这将为您提供对com具有权威性的gtld-servers.并且您将其定向到域的下一组域名服务器.
如果你有挖掘,尝试dig trace com.如果没有,那么访问http://www.digwebinterface.com/?hostnames=com.&type=&trace=on&ns=resolver&useresolver=8.8.4.4&nameservers=,它将显示输出和从根级别(.)到提供NXDOMAIN响应的NS的路由.