windows命令行

ipconfig /displaydns #显示本地缓存dns内容
ipconfig /flushdns #清除本地缓存dns内容

解释

To view the current DNS resolver cache content and the entries preloaded from the Hosts file, go to the command prompt and type

C:/> ipconfig /displaydns
Each entry shows the remaining Time to Live (TTL) in seconds. To clear the cache, go to the command prompt and type

C:/> ipconfig /flushdns
Flushing the DNS cache clears all entries and reloads the entries from the Hosts file.

更多推荐