This manual covers how to clear the DNS cache

On Windows

On Windows XP/Windows Vista

  1. Go into the Start Menu
  2. Press the «Run» button
  3. In the opened window, enter
    cmd
  4. Press Enter
  5. In the opened window, enter the DNS flush command:
    ipconfig /flushdns
  6. Press Enter
  7. Check the answer. Correct one is
    Successfully flushed the DNS Resolver Cache

На Windows Vista SP1/Windows 7

  1. Go into the Start Menu
  2. In the «Search» field, call for the command prompt by entering
    cmd
  3. Press Enter
  4. In the opened window, enter the DNS flush command:
    ipconfig /flushdns
  5. Press Enter
  6. Check the answer.Correct one on Windows Vista is
    Windows IP configuration successfully flushed the DNS Resolver Cache

    Correct one on Windows 7 is

    Successfully flushed the DNS Resolver Cache

На Windows 8/Windows 8.1/Windows 10

  1. Press «Windows + X», which will open the system context menu
  2. Click on «Command prompt (administrator)»
  3. In the opened window, enter the DNS flush command::
    ipconfig /flushdns
  4. Press Enter
  5. Check the answer. Correct one is:
    Successfully flushed the DNS Resolver Cache

Windows Command Prompt with an executed flushdns command.

Windows Command Prompt with an executed flushdns command.

If the answer is different, you need to turn on/reboot the DNSCache service. To do this:

  1. Enter the Start Menu
  2. Open the All Apps menu
  3. Launch the app «Services» in the folder «Administration»
  4. In the open window, find the service «DNS-client»
  5. Right click it and select “Reboot” or «Enable»

After that, repeat the procedure of clearing DNS cache.

On Linux

On Ubuntu Linux and Debian-compatible distros (Linux Mint, Knoppix etc.)

  1. Open the terminal (usually — «Ctrl+Alt+T»), but you can launch from the dashboard too
  2. In the terminal, enter:
    sudo /etc/init.d/networking restart
  3. Press Enter
  4. Once demanded — enter the admin password
  5. Press Enter
  6. Wait for the following response:
    [ ok ] Restarting networking (via systemctl): networking.service

Ubuntu terminal with an executed networking restart command

Ubuntu terminal with an executed networking restart command

If the answer is different from the screenshot above, that means that the cache could not have been cleared. Try another option:

  1. Open the terminal (usually — «Ctrl+Alt+T»), but you can launch from the dashboard too
  2. In the terminal, enter:
    sudo apt install nscd
  3. Press Enter
  4. Once demanded — enter the admin password
  5. Press Enter
  6. Wait until the installation is complete
  7. Clear the DNS. For this, enter the following in the terminal:
    sudo /etc/init.d/nscd restart
  8. Press Enter

On СentOS

  1. Open the terminal
  2. In the terminal, enter:
    nscd -i hosts
  3. Press Enter
  4. Restart the DNS service. For this, enter in the terminal:
    service nscd restart
  5. Press Enter