Flush DNS Cache

Flush DNS Cache:

Looking for a way to flush your DNS cache?

It’s as easy as:

Leopard – sudo dscacheutil -flushcache
Tiger – sudo lookupd -flushcache

Windows – ipconfig /flushdns

Further info here – Forcing an IP Address

  1. This does not work with Mac OS Tiger.

  2. Yes, it does.

    The first command is for tiger.
    The second one is for Win 2k/XP/2k3.

  3. The first command flushes only the cache maintained by lookupd.
    DNS entries may be cached elsewhere.

  4. If they “may be cached elsewhere” would you care to share where that might be?
    and if cached elsewhere how does one clear it?

  5. Use this command in Leopard:
    sudo dscacheutil -flushcache