

macOS Leopard (10.5)įinally, macOS Leopard (10.5) users should run the following command in Terminal:

Then, enter your password to finish clearing the DNS cache. If you’re running macOS Snow Leopard (10.6), open Terminal and input this command: You may notice that this is the same command used by versions 10.11 and above. macOS Lion (10.7), Mountain Lion (10.8), and Mavericks (10.9)įor macOS versions 10.7 to 10.9, open up Terminal and run the following command to clear your DNS cache:

In Yosemite (10.10), once the window opens you’ll need to run the following command:Įnter your computer’s password and the DNS cache should successfully flush. You can access Terminal by the same method described above for any macOS version. You’ll be prompted to enter your computer password:Īfter you’ve done so, your DNS cache should be clear. Once it opens, run the following command: If you’re working on macOS version 10.11 or above, open the command line interface by clicking on Go > Utilities: Once you know this information, you can follow the relevant steps below. Your current version will be the first piece of information listed: If you’re not sure what version you’re working with, click on the ‘apple’ icon in the top-left corner of your desktop, and select About This Mac : This process varies based on which version of macOS you’re running. To clear the DNS cache on a Mac, you’ll need to open the native command-line interface known as Terminal and run the appropriate command.
