HelloARI logo: vinyl signs and identity design web design«    sign design«    blog«    contact«  USE MY IMAGINATION
web design and wordpress development 94114

san frnacisco web design

How to Flush the DNS cache in Mac OSX for WordPress

Mac OSX uses a time-saving DNS cache. It’s generally invisible ot the user and helps speed things up a bit. If you are setting up a new WordPress self hosted site (or other CMS like Drupal) this can prevent you from being able to conenct to your new site – you might have to wait many hours after configuring that new DNS nameserver. This is more of an issue when moving a site from one host to another than setting up a new site.

The cache will still serve the old ip address of the site, even if the DNS server already has the new ip address in its configuration. To override the cache, and request the latest information with the authoritive DNS server, you can flush the DNS cache.It will quickly rebuild itself

To flush (or empty/delete) the DNS cache, open a Terminal window and enter the following command: sudo dscacheutil -flushdns

note that “sudo dscacheutil -flushdns” does not work.

the old mac os command was
sudo lookupd -flushcache

but you will get a response of:
sudo: lookupd: command not found
with any Tiger OS (or older).

In Leopard, dscacheutil replaces most of lookupd‘s functionality. It allows you to do many things: flush or view caches, view Directory Service configuration information, and evaluate cache statistics.

This entry was posted in Web Design, WordPress. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Comment

  1. Posted July 21, 2011 at 3:47 am | Permalink

    Really really handy list. Must have been a pain to compile it all together but we salute your efforts.

Post a Comment

Your email is never published nor shared. Required fields are marked *

You may use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


© 1996 - 2024
contact  |  links  |  rss