use*_*ame 9 domain-name-system linux windows command-line-interface mac-osx
如何在 Win、Mac 和 Linux 计算机上刷新 DNS 缓存?
spl*_*tne 17
视窗
ipconfig /flushdns
Run Code Online (Sandbox Code Playgroud)
Mac (OS X 10.5)
dscacheutil -flushcache
Run Code Online (Sandbox Code Playgroud)
Linux
如果您使用的是nscd:
nscd -i hosts
Run Code Online (Sandbox Code Playgroud)
在 Windows 中,您可以使用以下命令关闭客户端 DNS 缓存:
net stop dnscache
Run Code Online (Sandbox Code Playgroud)
它会停止 DNS 缓存服务。它将在下次重新启动时重新启动。
这是谷歌的回答:
在 Microsoft Windows(Win XP、Win ME、Win 2000)中刷新 DNS 缓存:-
- Start -> Run -> type cmd
- in command prompt, type ipconfig /flushdns
- Done! You Window DNS cache has just been flush.
Run Code Online (Sandbox Code Playgroud)
要在 Linux 中刷新 DNS 缓存,请重新启动 nscd 守护进程:-
- To restart the nscd daemon, type /etc/rc.d/init.d/nscd restart in your terminal
- Once you run the command your linux DNS cache will flush.
Run Code Online (Sandbox Code Playgroud)
要在 Mac OS X Leopard 中刷新 DNS 缓存:-
- type lookupd -flushcache in your terminal to flush the DNS resolver cache.
ex: bash-2.05a$ lookupd -flushcache
- Once you run the command your DNS cache (in Mac OS X) will flush.
Run Code Online (Sandbox Code Playgroud)
在 Mac OS X 中刷新 DNS 缓存:-
- type dscacheutil -flushcache in your terminal to flush the DNS resolver cache.
ex: bash-2.05a$ dscacheutil -flushcache
- Once you run the command your DNS cache (in Mac OS X Leopard) will flush.
Run Code Online (Sandbox Code Playgroud)