How to flush the DNS cache on your computer/workstation

It may be necessary to flush your DNS cache on your local computer when making DNS changes, especially when migrating your websites. This is a fairly simply task to complete. In most cases, rebooting your computer will also have a similar effect.


For a Windows computer, you’ll want to get to a command prompt (CMD). this can be done by using the following steps below for your corresponding version of Windows.

Windows XP: Start > Run > cmd (type cmd in the run box & press enter)

Windows 7: Start > cmd (type cmd in the search box & press enter)

Windows 8: Start > All Apps > cmd (type cmd in the search field & press enter)

Once you’ve gotten the command prompt up (black window) you’ll want to type the command listed below, then press enter. This will clear your local DNS cache on the computer that caches DNS records.

ipconfig /flushdns


From a terminal, you’ll want to run one of the corresponding commands below, depending on your packages:

/etc/init.d/nscd restart

service nscd reload

/etc/init.d/named restart

rndc restart

/etc/init.d/dnsmasq restart

service dnsmasq restart


From a terminal, you’ll want to run the command listed below:

dscacheutil -flushcache

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Domain DNS Propagation

When making changes to your DNS entries, the changes made can take up to 48 hours to fully...

How to enable SPF & DKIM in cPanel

This guide will give you an overview of how to enable your DKIM & SPF records from within...

Powered by WHMCompleteSolution