This article describes how to clear the DNS cache on your computer.
Many computer operating systems use caching to store DNS lookup results. Normally this is not a problem, and accelerates network performance. However, when you are developing a web site or configuring domain settings, your computer's DNS cache can get in the way, preventing you from accessing the correct site.
To clear the DNS cache, follow the appropriate procedure below for your computer's operating system or web browser.
To clear the DNS cache on Microsoft Windows, follow these steps:
ipconfig /flushdns
To clear the DNS cache on Apple Mac OS X, follow these steps:
sudo killall -HUP mDNSResponder
For OS X Yosemite v10.10 through v10.10.3, type the following command:
sudo discoveryutil mdnsflushcache
For OS X Mavericks, Mountain Lion, and Lion, type the following command:
sudo killall -HUP mDNSResponder
For Mac OS X Snow Leopard, type the following command:
sudo dscacheutil -flushcache
Many Linux distributions do not use DNS caching at the operating system level. Instead, applications (such as web browsers) maintain their own internal caches. To clear an application's DNS cache, often all you need to do is restart the application.
If your Linux computer does use a DNS caching service, however, consult its documentation for instructions about how to clear the cache.
The Google Chrome web browser maintains its own internal DNS cache. To clear it, follow these steps:
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.