Articles

How to Clear Your DNS Cache

If you have recently updated your DNS and your site does not load correctly, you might be experiencing DNS caching issues on your local machine.

To speed up requests to the same hostname, operating systems automatically cache IP addresses and other DNS results; however, sometimes bad or old results can be cached.

A bad DNS cache could also be the underlying cause of other issues, such as the following:

  • Your browser displays the wrong site.
  • Your browser returns a DNS error.
  • Your correct app shows when using a proxy site.
  • A site like www.whatsmydns.net shows the correct DNS information.

Clearing Your DNS Cache

To clear your DNS cache, follow the guidelines listed below. (These instructions are for the most recent operating systems; if you need assistance with an older version, you should contact your OS for support.)

Linux

If you are using the nscd Name Service Cache Daemon, open a command terminal and run the following as root:

sudo /etc/init.d/ncsd restart

macOS Sierra

Open a new Terminal window and run the following command:

sudo killall -HUP mDNSResponder

Windows 10

From the Windows 10 Desktop, open the Command Prompt (Admin) by right-clicking on the Start Menu. Then, run the following command:

ipconfig /flushdns

Last updated: March 31, 2017