How to Clear Your Computer's DNS Cache on Mac and Windows

Clearing your DNS cache can help resolve DNS-related issues such as website loading problems or DNS errors. Below are the steps to clear the DNS cache on both Mac and Windows operating systems.

Clearing DNS Cache on Mac

  1. Open the Terminal application. You can find it by searching in Spotlight or navigating to Applications > Utilities > Terminal.
  2. Once Terminal is open, type the following command and press Enter:
    sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  3. You may be prompted to enter your administrator password. Type it in (note that the characters won't appear on the screen) and press Enter.
  4. Your DNS cache is now cleared.

Clearing DNS Cache on Windows

  1. Press Win + R on your keyboard to open the Run dialog box.
  2. Type cmd and press Enter to open the Command Prompt.
  3. In the Command Prompt window, type the following command and press Enter:
    ipconfig /flushdns
  4. You should see a confirmation message stating that the DNS Resolver Cache was successfully flushed.

After clearing the DNS cache, any DNS-related issues should be resolved. If problems persist, consider restarting your computer or checking your network settings.

Hjälpte svaret dig? 0 användare blev hjälpta av detta svar (0 Antal röster)