天天看點

如何清空linux的DNS緩存,如何清空DNS緩存方法/指令

如何清空DNS緩存方法/指令

微軟windows下如何清空DNS緩存

In Microsoft Windows, you can use the command ipconfig /flushdns to flush the DNS resolver cache.

在微軟windows下,你可以用指令 ipconfig /flushdns 來清空dns 緩存内容。

You can also use the command ipconfig /displaydns to view the DNS resolver cache.

你也可以用指令 ipconfig /displaydns 來檢視dns 緩存内容。

ipconfig /flushdns

Windows IP Configuration

Successfully flushed the DNS Resolver Cache.

How to Flush DNS in Mac OSX

Mac OSX下如何清空DNS緩存

In Mac OSX, you can use the command lookupd -flushcache to flush the DNS resolver cache.

在Mac OSX中,你可以用這個指令lookupd -flushcache來清空保留的緩存。

bash-2.05a$ lookupd -flushcache

How to Flush DNS in Linux

Linux 下如何清空DNS緩存

In Linux, the nscd daemon manages the DNS cache.

在linux中,nscd程序負責管理DNS緩存。

To flush the DNS cache, restart the nscd daemon.

要清空DNS緩存,重新開機nscd 守護程序就行了。

To restart the nscd daemon, use the command `/etc/rc.d/init.d/nscd restart`.

要重新開機nscd 程序,使用指令 /etc/rc.d/init.d/nscd restart