Clear Local DNS Cache on Windows & Mac

Prev Next

This article will show you how to flush the DNS for a computer running a Windows or Mac operating system.

Clear Local DNS Cache on Windows

  1. Type "cmd" into the Taskbar Search Box:The Windows search bar is highlighted and filled with a search for 'cmd'.

  2. Click the Command Prompt app in the results list when the search completes:Windows search bar results for the Command Prompt app.

  3. Within the prompt, type "ipconfig /flushdns":The Command Prompt app window with instructions highlighted that read 'ipconfig /flushdns'.

  4. Hit the Enter key on your keyboard

  5. A Successfully flushed DNS Resolver Cache message should appear:The Command Prompt app window with a highlighted message reading 'Successfully flushed the DNS Resolver Cache.'


Clear Local DNS Cache on Mac

  1. Navigate to Finder, hover over the Go tab, then select the Utilities option in the drop-down list:The Finder screen on a Mac computer with the Go tab expanded and the Utilities option highlighted.

  2. Select the Terminal option:The Mac Utilities screen with the Terminal option highlighted.

  3. A Terminal window will open on your local machine

  4. Within the prompt, type "sudo killall -HUP mDNSResponder && echo macOS DNS Cache Reset"

  5. Hit the Enter key on your keyboard

    Notes:

    • There will be no message, but at this time please reattempt connection to your domain.

    • You may have to enter your administrator password.