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>