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

/** * RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS. * LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables*/ /* var disqus_config = function () { this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable }; */ (function() { // DON'T EDIT BELOW THIS LINE var d = document, s = d.createElement('script'); s.src = 'https://chenzz.disqus.com/embed.js'; s.setAttribute('data-timestamp', +new Date()); (d.head || d.body).appendChild(s); })();