The hosts file takes effect

Sometimes we modify the Hosts file (the path is system disk: \WINDOWS\system32\drivers\etc\hosts), and after modifying and saving the Hosts file, we need to restart to make the settings take effect. At this point, you can open a command prompt window and execute the following command:

ipconfig /displaydns

//Display DNS cache content

ipconfig /flushdns

//delete DNS cache content

In this way, the system will clear the local DNS cache, so that the Hosts file can take effect without restarting.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325824574&siteId=291194637