How To Flush DNS Cache

The DNS information of all websites you visit are stored on your PC’s cache. Thus, websites you’ve visited before load much faster because you’re getting their DNS information straight from your PC’s cache.

However, there is a caveat to this advantage. If the DNS information of these websites change, which may happen when they change hosts, for instance, you may get a barrage of 404 errors. To resolve your access problems, you need to flush your DNS cache.

Flushing your DNS cache is pretty straightforward, regardless of what OS you’re using. The steps for flushing your DNS cache on Windows, MacOS, and Linux are given below.

Windows 10 and 8

  1. Press Win+X, then click Command Prompt (Admin).

  2. If a UAC prompt appears, click Yes.

  3. On the command prompt window, enter ipconfig /flushdns, then press Enter. You should see a  Windows IP configuration successfully flushed the DNS Resolver Cache message on the command prompt after you run the command.

Windows 7

  1. Click Start, then enter cmd.

  2. On the search results, right-click Command Prompt and select Run as Administrator.

  3. On the Administrator: command prompt window, enter ipconfig /flushdns, then press Enter. You should see a  Windows IP configuration successfully flushed the DNS Resolver Cache message on the command prompt after you run the command.

MacOS X 10.5 and above

  1. Go to Applications>Utilities>Terminal to open a terminal.

  2. Enter dscacheutil -flushcache.

MacOS X 10.4 and below

  1. Go to Applications>Utilities>Terminal to open a terminal.

  2. Enter lookupd -flushcache.

Linux

  1. Press Ctrl-ALT-T to open a terminal.

  2. Enter sudo /etc/rc.d/init.d/nscd restart.

  3. Enter your administrator password, then press Enter.

  • dns, cache, flush
  • 4 Users Found This Useful
Was this answer helpful?

Related Articles

How Do I Update my DNS servers?

If you're transferring your hosting account to us, you'll need to update your domain's DNS...

Troubleshooting Email Sending Problems

If you cannot send email, perform the steps below to troubleshoot the problem. Step 1: Log on to...

I'm receiving a blank page

If your website or web application is displaying nothing but a blank, white page, then chances...

Page is displaying 404 Page Not Found error

The 404 Page Not Found error means that the user requested a page on the server that does not...

My webpage is displaying ads

If your website is not pulling up and is instead showing advertisements, the most likely cause is...