How to clear dns cache?
How do I clear the DNS cache in Lion?
Walt
MacBook Pro, Mac OS X (10.7.1)
How do I clear the DNS cache in Lion?
Walt
MacBook Pro, Mac OS X (10.7.1)
In Terminal.app, run "sudo dscacheutil -flushcache"
In Terminal.app, run "sudo dscacheutil -flushcache"
Thanks. I should have known to look in my Unix docs :-)
Walt
"sudo dscacheutil -flushcache"
Is this the same command to flush the DNS Cache in Leopard 10.5.8 - (Power PC)?
You can use: sudo dscacheutil -flushcache See How To Flush DNS Cache On Mac
Is the command the same with OS 10.5?
I have been unable to access this Gradebook application from my computer at school since September. When I take the computer home, the Gradebook application works correctly... but at school, on the school's network, I get a error message "can't locate server" or something. The computer just keeps going back to the address where it was last year when the application worked correctly.
Thanks for the help.
In Lion and Mountain Lion
sudo killall -HUP mDNSResponder
In Leopard / Snow Leopard
dscacheutil -flushcache
In Tiger
lookupd -flushcache
I tried this for osx Lion. It's still not working.
The Lion and Mountain Lion suggestion worked like a dream. I'm running Lion 10.7.4. Thank you.
The Mountain Lion command didn't seem to work for me. I got no indication the command had run, and I still couldn't access the Website's new server. Does Terminal.app give you any confirmation or indication the command executed? (I've never used it before.)
After I entered the command, Terminal.app asked me for my password (a post on another site said it would do this), but then it wouldn't let me enter anything at all. I hit return and just got a new command line. Then Terminal wouldn't let me try to run the command again -- when I entered it and hit return, it just gave me a new command line.
iMac 2.7 GHz Intel Core i5, OS X 10.8.4, Safari 6.0.5
I had the same problem. It kind of freaked me out. I got the feeling I got some sort of junk suggestion from the internet. Maybe I did. Why do I even need ot clear my cache?
I have had lots problems with websites not showing (and related emails not working) on my mac when DNS has changed despite resetting browsers and flushing DNS in terminal.
However, I found that if I checked the website using my ipad (on same broadband) the website would show properly.
Problem lies in the fact that my iMac is connected via cable. Remove the cable and switch to Wi-Fi and all is instantly resolved.
So guessing the problem lies in the router caching DNS - likely the same results could be achieved by resetting the router.
How to clear dns cache?