Skip links
How to Clear Your DNS Cache

How to Clear Your DNS Cache ( Windows, MacOS, Linux )

How to Clear Your DNS Cache On All Devices

In this post, we want to teach you how to clear your DNS cache.

How to clear your DNS cache

To clear your DNS cache if you use Windows 7, 8, 10, 11, Windows XP, 2000, or Vista, perform the following steps:
Press the two together on the keyboard
Windows + R
Run the following command in the Run text box:

If the command succeeds, the system returns the following message:

Windows IP configuration successfully flushed the DNS Resolver Cache.

If you’re experiencing DNS resolution issues on your Mac, clearing the DNS cache may help resolve the problem. Here’s how you can clear the DNS cache on macOS:

  1. Open the Terminal application. You can find it in the Utilities folder, which is located within the Applications folder.

  2. In the Terminal window, type the following command and press Enter:

  1. This command will restart the mDNSResponder service, which is responsible for DNS resolution on your Mac.

  2. When prompted, enter your admin password and press Enter.

  3. Once the command is executed, the DNS cache on your Mac should be cleared. You can verify this by trying to access the website or service that was experiencing the DNS issue.

Note that clearing the DNS cache may also clear any locally cached information, such as website passwords and cookies. If you’re concerned about losing any locally stored data, you may want to backup that data before proceeding with clearing the DNS cache.

If you’re experiencing DNS resolution issues on your Linux system, clearing the DNS cache may help resolve the problem. Here’s how you can clear the DNS cache on Linux:

  1. Open a terminal window. You can typically do this by pressing Ctrl+Alt+T on your keyboard.

  2. In the terminal window, type the following command and press Enter:

  1. This command will flush the DNS cache on your Linux system.

  2. Once the command is executed, the DNS cache on your Linux system should be cleared. You can verify this by trying to access the website or service that was experiencing the DNS issue.

Note that depending on the Linux distribution you are using, the command to flush the DNS cache may vary. For example, on some distributions you may need to use the rndc flush command instead. Be sure to check the documentation for your specific Linux distribution to determine the correct command to use.

We use cookies to provide the best web experience possible.