Home  >  Article  >  Operation and Maintenance  >  How to clear DNS cache on Windows

How to clear DNS cache on Windows

不言
不言Original
2019-03-12 09:39:525620browse

This article will introduce to you how to use the command line to refresh the DNS cache on Windows and MacOS systems. Let’s look at the specific content below.

How to clear DNS cache on Windows

#When accessing any domain from the system, the IP of the remote system is resolved by the DNS server. When it is accessed for the first time, the IP is resolved directly from the DNS server, and then the system makes a cache on the local system to avoid sending queries to the DNS server every time in the same domain. This is great for reducing traffic on the DNS server, but sometimes we change the IP of the corresponding domain but your system will still resolve to the old IP due to the existence of DNS cache on the local system. This time it is necessary to clear/flush the DNS cache on the local system.

Clear DNS cache on Windows

First, press the shortcut key "Window r" to open the running window.

Now type cmd in the run window and press Enter.

This will open the Windows command line interface. Now type the following command to clear DNS cache on Windows system.

c:/> ipconfig /flushdns

displays the following results:

How to clear DNS cache on Windows

This article has ended here. For more other exciting content, you can pay attention to other related topics on the php Chinese website Column tutorial! ! !

The above is the detailed content of How to clear DNS cache on Windows. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn