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.