Friday, July 6, 2012

Flushing DNS on Mac OS X Lion

Found this linked from an internal forum post, and thought it worth sharing - mainly so I can find it again :-)

Flushing the DNS on Mac OS X Lion is quite simple. Just follow the below steps:

1) Change to "root" by using the following command:
su -
Enter the root password when prompted. If you don't know the "root" password for your system, you can set it by following this Apple KB article: http://support.apple.com/kb/ht1528

2) Type in the following command to flush the DNS:
dscacheutil -flushcache

The DNS has now been flushed.

Thanks to djlaube at Lewan & Associates for sharing

No comments:

Post a Comment