Clearing the DNS Cache

When you have a major change to a domain such as nameserver records, A records for existing entries and the like, you have an issue with DNS caching for upto 72 hours.

To help with this, you can check to see if your computer is using the cached record by clearing it.

Recommended Procedure

When clearing your DNS it is best to follow the procedure below...

  1. Clear your browser cache and cookies
  2. Flush your DNS cache according to instructions on this page suitable for your computer
  3. Restart your computer
  4. Reboot or restart your NETWORK ROUTER and/or DSL/Cable MODEM

If you have both modem and router, restart the MODEM first and then the NETWORK ROUTER.

Also, remember, it can take between 24~72 hours for DNS changes to have full effect so while you have done everything you can, your ISP may still have an old cached record until it expires in their cache or they clear their cached copy.

Flush DNS in Windows XP and pre-XP

  1. Click Start
  2. Click Run
  3. Type: cmd
  4. Press Enter
  5. Run: ipconfig /flushdns

Flush Windows Vista and Windows 7

  1. Click the Windows Orb
  2. In the Search/Run box type and run: cmd
  3. Type and run: ipconfig /flushdns

Linux w/ nscd daemon

  1. Open a console
  2. Run: sudo /etc/init.d/nscd restart

Linux w/ DNSmasq daemon

  1. Open a console
  2. Run: sudo /etc/init.d/dnsmasq restart

Flush DNS cache in MacOS X

  1. Open a console
  2. Run: lookupd -flushcache

Note for newer versions of MacOS X (10.5+) instead run: dscacheutil -flushcache