A2oz

How to Flush DNS?

Published in Computer Networking 2 mins read

Flushing your DNS cache clears any old or outdated information your computer is using to resolve domain names into IP addresses. This can be helpful if you're experiencing website loading issues or if you've recently changed your DNS settings.

Here's how to flush your DNS cache on different operating systems:

Windows

  1. Open the Command Prompt: Press the Windows key + R, type cmd, and press Enter.
  2. Run the command: Type ipconfig /flushdns and press Enter.
  3. Verify the result: You should see a message confirming that the DNS Resolver Cache has been successfully flushed.

macOS

  1. Open Terminal: Go to Applications > Utilities > Terminal.
  2. Run the command: Type sudo dscacheutil -flushcache and press Enter.
  3. Enter your password: You'll be prompted to enter your administrator password.
  4. Verify the result: You should see a message confirming that the DNS cache has been flushed.

Linux

  1. Open a terminal: Use the shortcut Ctrl + Alt + T.
  2. Run the command: Type sudo systemd-resolve --flush-caches and press Enter.
  3. Enter your password: You'll be prompted to enter your administrator password.
  4. Verify the result: There should be no output if the command was successful.

Note: You may need to restart your browser or other applications after flushing your DNS cache for the changes to take effect.

Related Articles