Sie sind auf Seite 1von 3

11/28/12

How to Flush DNS Cache in Mac OS X

Home

Mac OS X

iPhone

iPad

Tips & Tricks

Jailbreak

Mountain Lion

iOS

Search

How to Flush DNS Cache in Mac OS X


Mar 21, 2008 - 8 Comments

Subscribe to OSXDaily

If youre a systems administrator or a web developer, chances are youll have to flush your DNS cache every once in a while to get things straightened out serverside. Flushing your DNS cache in Mac OS X is actually really easy, and there are two different commands to use, one for Leopard and for Tiger. Depending on your version of OS X, open your Terminal and follow the appropriate directions below:
Like 16k Follow @OSXDaily

Shared on Facebook
FlipClock is a Beautifully Simple Clock Screen Saver for Mac OS X 20 people recommended this. Use iPad as an External Monitor with Air Display Free 85 people recommended this. Improve Listening to Music in iTunes with 3 Quick Preference Adjustments 45 people recommended this. Why Steve Jobs Always Wore a Black Turtleneck 104 people recommended this. If Apple Made iOS In 1986 This Is What It Would Look Like 314 people recommended this. Respond to Incoming Phone Calls with Automatic Message Replies

Flushing DNS Cache in OS X Lion (10.7) and OS X Mountain Lion (10.8)


Launch Terminal and enter the following command, you will need to enter an administrative password: sd klal-U mNRsodr uo ill HP DSepne Note the dscacheutil still exists in 10.7 and 10.8, but the official method to clear out DNS caches is through killing mDNSResponder. You can also find that process running in Activity Monitor.

Flush DNS Cache in Mac OS X 10.5, Mac OS X 10.6


Launch Terminal and issue the following command: dccetl-lscce sahui fuhah All done, your DNS has been flushed. On a side note, the dscacheutil is interesting in general and worth taking a look at, try the -statistics flag instead for some stats.

29 people recommended this. Enable Kid Mode on iPad, iPhone, or iPod touch with Guided Access in iOS 723 people recommended this.

Flush your DNS Cache in Mac OS X 10.4 Tiger


Type the following command in the Terminal: loud-lscce okp fuhah Thats it, thats all there is to it. Now your DNS settings should be as you intended them to be.

Facebook social plugin

Shop at Amazon

Ad

OSXDaily on Facebook
OS X Daily on Facebook
Like 16,133 people like OS X Daily.

Starwind

Abdulmohsen

Beau

Joseph

Dev

Thiago

Brian

Michel

Tn

Jakub

Facebook social plugin

OSXDaily on Google+

75

57

OSXDailyon

Follow

Related articles:
How to Edit the Hosts File in Mac OS X with Terminal Easily Edit Hosts File in Mac OS X from a Preference Pane

osxdaily.com/2008/03/21/howtoushyourdnscacheinmacosx/

1/3

11/28/12

How to Flush DNS Cache in Mac OS X

Fix This device isnt eligible for the requested build Error in iTunes When Updating iOS Clear History, Cache, and Cookies from Safari Browser on your iPhone & iPad

Posted by: Bill Ellis in Command Line, How to, Mac OS X, Tips & Tricks

8 Comments
Comments RSS Feed

Cherooo says:
January 30, 2009 at 12:47 pm

thank you very much for this article, I wanted to ask you please how can erase our dns cache?
Reply

carset says:
October 10, 2009 at 7:18 am

Does this function still work? Ive changed my nameservers on a site I own and its been hours and Im still getting the old results Ive tried flushing the dns and its still not working.
Reply

logicalnot says:
June 2, 2011 at 4:58 pm

As of today, the command works perfectly. Thank you.


Reply

Mike says:
November 22, 2011 at 2:30 pm

Once I enter the command into Terminal, does any confirmation script appear to confirm the cache has been cleared?
Reply

Cant Download iOS 5.1? Try These Fixes says:


March 9, 2012 at 7:12 pm

[...] a Mac you may need to follow this up with flushing DNS cache, so open the Terminal and type the [...]
Reply

Al Varnell says:
July 3, 2012 at 7:06 pm

Ive heard this does not work in Lion and that you must use the following, instead: sudo killall -HUP mDNSResponder
Reply

okcomputer says:
July 31, 2012 at 4:35 pm

Works Great on Lion. Cleared an issue I had with multiple hostnames


Reply

How to Edit the Hosts File in Mac OS X with Terminal says:


August 7, 2012 at 3:48 pm

[...] You can verify your hosts modifications immediately with ping, Safari, or any other network app. Changes take effect immediately though some adjustments may need to be accompanied by a DNS flush. [...]
Reply

Leave a Reply

osxdaily.com/2008/03/21/howtoushyourdnscacheinmacosx/

2/3

11/28/12
Name (required)

How to Flush DNS Cache in Mac OS X

Mail (will not be published) (required)

Website

Submit Comment

Previous: How to Spoof your MAC address in Mac OS X

Next: Three ways to change the short username in Leopard OS X Daily


Email us: osxdailycom@gmail.com Write for us: osxdailycom@gmail.com Contact Us | Privacy Policy | Sitemap This website is unrelated to Apple Inc All trademarks and copyrights on this website are property of their respective owners.

2012 OS X Daily. All Rights Reserved. Reproduction without explicit permission is prohibited.

osxdaily.com/2008/03/21/howtoushyourdnscacheinmacosx/

3/3

Das könnte Ihnen auch gefallen