1. Home
  2. Knowledge Base
  3. Internet
  4. Network
  5. Clearing (Flushing) the DNS cache in Mac OS X

Clearing (Flushing) the DNS cache in Mac OS X

Mac OS X persistently maintains a DNS cache after connecting to a site or accessing a domain (hostname).  This can produce errors when accessing resources with updated DNS in web browsers and E-mail (or any other Internet program you may be using.)

To flush the cache in older Mac OS X, issue this command from a terminal window:

  <b>lookupd -flushcache</b>

 

in Mac OS X v10.6

Use the following Terminal command to reset the DNS cache:

   <b>sudo dscacheutil -flushcache</b>

in OS X Mountain Lion or Lion

Use the following Terminal command to reset the DNS cache:

   <b>sudo killall -HUP mDNSResponder</b>

 

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact E Street Support