Clear DNS cache on Mac OS X

Changing domains around on your web server can leave you with a local DNS cache that doesn’t match your domain’s new settings. Flush your DNS cache on Mac OS X 10.5 by issuing the following command:

dscacheutil -flushcache

Edit 5/19/2014: OS X Mavericks has a slightly different method for clearing the DNS cache.

2 thoughts on “Clear DNS cache on Mac OS X

  1. Hi, i feel that i saw you visited my website thus i came to return the favor?.I am attempting to to find things to enhance my website!I assume its ok to make use of some of your ideas!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.