This article describes how to clear the DNS cache on a computer running Apple's macOS or Mac OS X.
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 on Apple's macOS or 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
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.
Usamos cookies con el fin de personalizar para usted nuestro sitio Web y analizar el uso de éste. Usted acepta esto haciendo clic en “Acepto” o al continuar usando el sitio Web. Hay más información sobre cookies en nuestra política de privacidad.