在不同的系统中刷新DNS缓存的方法如下:
Mac OS X 系统,终端输入:
sudo dscacheutil -flushcache



 

Linux系统,终端输入:
/etc/init.d/nscd restart



 

Windows 系统,CMD 命令行窗口输入:
ipconfig /flushdns



 

查看
 

  1. ice@mac:~ > nslookup -q=ns baidu.com
  2. Server: 8.8.8.8
  3. Address: 8.8.8.8#53
  4.  
  5. Non-authoritative answer:
  6. baidu.com nameserver = dns.baidu.com.
  7. baidu.com nameserver = ns2.baidu.com.
  8. baidu.com nameserver = ns4.baidu.com.
  9. baidu.com nameserver = ns3.baidu.com.
  10.  
  11. Authoritative answers can be found from:
  12. dns.baidu.com internet address = 202.108.22.220
  13. ns2.baidu.com internet address = 61.135.165.235
  14. ns3.baidu.com internet address = 220.181.37.10
  15. ns4.baidu.com internet address = 220.181.38.10