nslookup手动模拟DNS递归查询

具体步骤:

nslookup -type=ns 126.com 192.5.5.241
nslookup -type=ns 126.com 192.5.6.30
nslookup -type=a 126.com 54.86.137.107

192.5.5.241      是一个根DNS服务器的的IP

192.5.6.30        是一个com级DNS服务器的IP

54.86.137.107 是一个126权威DNS服务器的IP

问题:

nslookup查得的IP和ping查得的IP为什么不一致?

The reason that nslookup can operate differently to ping is that,
ping uses the system-supplied library, as used by other applications, for name-to-address mapping, 
whereas nslookup has its own, built in, DNS client library. [1]

参考:

[1] nslookup-results-different-to-ping

本文章迁移自http://blog.csdn.net/timberwolf_2012/article/details/25900609