Flush DNS cache in Mac OS X

When transferring domains from one hosting company to
another, it sometimes takes my computer a while to realize there the new
address is (where the domain resolves to). To speed up the process and
ensure my Mac can see the new site’s location, I use the command:

lookupd -flushcache

This is a command you must input into the Terminal (Applications >
Utilities > Terminal). Type it in as above and hit the enter/return
key and then try to access the site again. You should also reset your
browser’s cache.

There are exceptions where this won’t have any immediate effect, but I have found it to work quite well.

If you have any other experiences, please add them in the comments below.

Share on twitter
Twitter
Share on reddit
Reddit
Share on telegram
Telegram
Share on email
Email
Share on print
Print

Site made with love of these open source tools

The beautifully-crafted OS that forces you to learn how to do things properly.

For better or worse, WordPress powers 30% of the web. ClassicPress reduces some of the bloat.

Text is my material. Learn one text editor well.

Version controlling all the things.

Retaining workspaces on local and remote servers.

Supporting the OpenBSD community with opinionated VMs. €10/yr donated to the OpenBSD Foundation.

To Roman Zolotarev, for helping us Master the Web. My family and friends for enduring my voluntary financial hardship while pursuing my passions.