Clear DNS cache

→ Are you a new visitor? Please visit the page guidance for new visitors ←

Why clear the local dns cache ?

If you just registered a domain or changed a record on your domain name, you need to either wait for the dns cache to clear itself or clear your local cache to get a new name resolution.

To clear your DNS cache in Microsoft Windows (Win XP, Win ME, Win 2000, Win 98):
  1. – Start -> Run -> type cmd
  2. – in command prompt, type ipconfig /flushdns
  3. – Done! You Window DNS cache has just been flush.
How to clear DNS cache in vista.
  1. Click the Microsoft Vista Start logo in the bottom left corner of the screen
  2. Click All Programs
  3. Click Accessories
  4. RIGHT-click on Command Prompt
  5. Select Run As Administrator
  6. In the command window type the following and then hit enter: ipconfig /flushdns

You will see the following confirmation:

Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
To flush the DNS cache in Linux, restart the nscd daemon:
  1. To restart the nscd daemon, type /etc/rc.d/init.d/nscd restart in your terminal
  2. Once you run the command your linux DNS cache will flush.

On newer versions of Linux you may need to use:

/etc/init.d/nscd restart

To flush the DNS cache in Mac OS X:
  1. type lookupd -flushcache in your terminal to flush the DNS resolver cache.
    ex: bash-2.05a$ lookupd -flushcache
    Once you run the command your DNS cache (in Mac OS X) will flush.
  2. Newer versions of MacOS X should use the following command:
  3. type dscacheutil -flushcache

Request an article ←