本文講解如何刷新Windows、Mac OS X、Linux操作系統的本地DNS緩存。
Windows操作系統
進入命令提示符下(開始—運行—cmd),輸入:
ipconfig /flushdns
或者直接禁用網卡後再啟用網卡,也可以刷新本地DNS緩存。
Mac OS X操作系統
In Mac OS X Leopard, you can use the command
dscacheutil to flush the DNS resolver cache:
dscacheutil -flushcache
In Mac OS X versions 10.5.1 and before, the command lookupd -flushcache performed the same task:
lookupd -flushcache
Linux操作系統
在Linux中,nscd daemon管理DNS緩存。如果想刷新DNS緩存,需要重新啟動nscd daemon。
重啟nscd daemon的命令如下:
/etc/init.d/nscd restart
歡迎來訪。
flushdns倒是經常用,禁用啟用網卡第一次聽說,又學了一招