"Internet Protocol Version 4 (TCP/IPv4)" > "Properties" > "Advanced..." > "DNS" > "Refresh" > Restart the Registry Editor: Modify the "CacheTimeout" value in "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters" to "0""/> "Internet Protocol Version 4 (TCP/IPv4)" > "Properties" > "Advanced..." > "DNS" > "Refresh" > Restart the Registry Editor: Modify the "CacheTimeout" value in "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters" to "0"">

Home  >  Article  >  System Tutorial  >  How to clear dns cache in windows

How to clear dns cache in windows

小老鼠
小老鼠Original
2024-04-10 15:27:18772browse

There are four ways to clear the DNS cache in Windows: Command prompt: Enter the "ipconfig /flushdns" command Network Status Panel: Click "Properties" > "Internet Protocol Version 4 (TCP/IPv4)" > "Properties" > "Advanced..." > "DNS" > "Refresh" > Restart the Registry Editor: Modify the "CacheTimeout" value in "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters" to "0 ”

How to clear dns cache in windows

How to clear the DNS cache in Windows

The DNS cache is used by Windows to store the IP addresses of recently visited websites. Temporary storage for addresses. If outdated or incorrect IP addresses are stored in the DNS cache, it may cause website access issues. Therefore, it is important to clear the DNS cache regularly.

Method to clear DNS cache:

  1. Command prompt

    • Press Windows key R, type "cmd" and press Enter.
    • In the command prompt, enter the following command:

      <code>ipconfig /flushdns</code>
      • Press Enter.
  2. Network Status Panel

    • Right-click the network icon on the taskbar and then Select "Network & Internet Settings".
    • In the Network and Internet Settings window, click Ethernet.
    • In the Status section, click Properties.
    • In the Ethernet Properties window, select Internet Protocol Version 4 (TCP/IPv4), and then click Properties.
    • On the "General" tab, click the "Advanced..." button.
    • In the "Advanced TCP/IP Settings" window, click the "DNS" tab.
    • Click the "Refresh" button.
  3. Registry Editor

    Warning:Modifying the registry may cause system instability. Only use this method if you are sure you know what you are doing.

    • Press the Windows key R, type "regedit", and then press Enter.
    • Navigate to the following registry key:

      <code>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters</code>
    • In the right pane, double-click the "CacheTimeout" value.
    • Change the value of the "Value Data" field to "0".
    • Click OK to save changes.
  4. Restart the computer

    • Any changes made to the DNS cache will require a computer restart to take effect.

The above is the detailed content of How to clear dns cache in 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