Clear your DNS cache in OSX

Learn how to Clear your DNS cache in OSX

Carry on reading to find out how to clear your DNS cache in OSX

About the DNS cache

If you are having trouble viewing a newly created website, or are seeing an old version of your website, your mac may not be using the current DNS entries from your server, if this is the case, you can wait it out – usually an hour or two, however – it’s simple to clear your DNS cache and pull the latest entries.

Carry on reading below to find out how to clear the cache on your OS X system.

Open a Terminal Window

Open a Terminal window by pressing the command key and space

 

 

OS X Yosemite

Enter the command below in your Terminal to reset the DNS cache:

[code]sudo discoveryutil mdnsflushcache[/code]

OS X Mavericks, Mountain Lion, and Lion

Enter the command below in your Terminal to reset the DNS cache:

[code]sudo killall -HUP mDNSResponder[/code]

Mac OS X v10.6

Enter the command below in your Terminal to reset the DNS cache:

[code]sudo dscacheutil -flushcache[/code]



« | »