InMotion Hosting Support Center

In this tutorial:

DNS resolves domain name to IP addresses so people do not have to remember a series of numbers (IP addresses) when trying to visit a website. In order the speed up this process and reduce the traffic on the DNS servers, most computer operating systems will store or cache DNS lookups on your computer locally. At times, you may need to clear the cache to see changes . In this tutorial, we'll show you how to clear the DNS cache for the major operating systems on the market. Typically, this process is referred to as clearing or flushing the local DNS cache.

Flushing Local DNS Cache in Windows

Open the command line window, and depending on your version of Windows, this can be done in one of the following ways:

  • Windows 7 and Vista:
    • Click on the Start Menu 
    • Type cmd in the search box
    • Right click on cmd in the programs search results and choose Run as Administrator
  •  

  • Windows 98/NT/2000/XP
    • Click on the Start Menu
    • Select Run
    • Type or select cmd to open the command line window

 

Once the command line window is open type the following command at the prompt and hit enter

ipconfig /flushdns

After the flushdns is cpmpleted, type exit to close the command line window.

Flushing Local DNS Cache in Mac OS X

OS X 10.10

  • Open a Terminal window
  • Type this command and hit return

    sudo discoveryutil mdnsflushcache

  • Close the terminal window

OS X 10.7 - 10.9

  • Open a Terminal window
  • Type this command and hit return

    sudo killall -HUP mDNSResponder

  • Close the terminal window

OS X 10.6 and below

  • Open a Terminal window
  • Type this command and hit return

    sudo dscacheutil -flushcache

  • Close the terminal window

Flushing Local DNS Cache in Linux

With the various distributions of Linux, you will find that by some run a daemon in the background to manage DNS cache, while others do not. Ubuntu is a good example of a distribution that doesn't run this daemon by default. If you're running Ubuntu and you have not already installed the ncsd daemon, you can install it with this command:

sudo aptitude install nscd

To restart the ncsd deamon in Linux, use this command:

sudo /etc/init.d/networking restart

If you need further assistance please feel free to contact our support department.

Support Center Login

Social Media Login

   
Social Login Joomla

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2014-11-07 10:38 am

I have windows 8 and I have tried 3 times to flush dns 3 times and it doesn't work.

Staff
4,157 Points
2014-11-07 12:18 pm
Hello Pete,

The command is the same for Windows 8, however is there a certain domain you are trying to go to but your DNS is cached? Can you provide such domain or why you are needing to flush your local DNS cache?

Kindest Regards,
TJ Edens
n/a Points
2015-05-13 1:25 pm

Youshould update these infos.

Use what apple suggests :

https://support.apple.com/en-ca/HT202516

Staff
17,092 Points
2015-05-18 4:08 pm
Hello Jeffrey,

Thank you for your suggestion. I have updated the article with the latest information as per your recommendation.

The steps for clearing cache in Mac OSX should now be accurate.

If you have any further suggestions, please let us know.

Thank you,
John-Paul
n/a Points
2015-06-25 3:50 pm

i am using windows 8 i am also 2 times sucessfully clear DNS cache but my site is not open proper show message (http://www.example.com/cgi-sys/suspendedpage.cgi

This Account Has Been Suspended

how to solve this problem please solve this as soon as possbile. 

www.example.com

Staff
17,092 Points
2015-06-25 4:37 pm
Hello Moin,

Thank you for contacting us. When I navigate to your site, I see "we are sorry but this store is down for maintenance
please try again later ..."

Have you tried clearing your browser cache, testing in a different browser (such as Chrome FireFox, Safari, IE, etc.), or testing on a different computer, or device?

Are you able to try on different network, for example if you are on a college campus, library, or coffeeshop.

If it is only on one computer, check that you have not made any Host File Modifications.

Thank you,
John-Paul

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

6 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!