If you don’t know what DNS cache is, it’s a location where the IP addresses of web servers are stored. These contain pages of websites which you had earlier navigated. In case there’s a change in the location when DNS cache is getting updated, then you would no longer be able to browse through the website.
Check Also: How To Flush DNS Cache On Windows PCs?
Table of Contents
How to Clear DNS Cache in Mac OS X Yosemite/El Captain?
If you’re using Mac OS 10.10.4 or above, then you can easily clear DNS cache. You would no longer to have to be technically trained but follow a few steps.
Step 1: Click Applications and open ‘Utilities’.
Step 2: After clicking on Utilities, click on Terminal.
Step 3: Target both, UDNS and MDNS with different commands in case you need to clear DNS caches from the system.
Step 4: For clearing MDNS cache, execute the command as mentioned below.
sudo discoveryutil mdnsflushcache
Step 5: Press the return key and enter the admin password when you’re prompted to do so.
Step 6: For erasing UDNS cache, run the command as below.
sudo discoveryutil udnsflushcaches
Step 7: Once again, press the return key and enter the password when requested.
If you’re successful, the system won’t revert any message or output
How to Delete DNS Cache in OS X Mavericks, Lion, and Mountain Lion?
For resetting the DNS cache, the command is as mentioned below.
sudo killall -HUP mDNSResponder
Steps to Flush DNS Cache in OS X Snow Leopard
No matter which operating system you’re using, you have to go through a standard procedure.
Once you have opened Terminal, then simply copy paste the command as shown below.
sudo killall -HUP mDNSResponder
Steps for Fetching the DNS Details in OS X Yosemite/El Captain
When you’re updating the DNS cache, then you can check the status with the help of some commands.
For getting the UDNS cache statistics, enter the command as shown below
sudo discoveryutil udnscachestats
Additionally, you can source the relevant details for the multicast DNS cache with the following command.
sudo discoveryutil mdnscachestats
You would get an output as shown below
MDNS Cache Stats: lo0: Cached 6 of 7500
Finally, once you have succeeded in clearing the DNS cache, then you can check the change with the help of ‘dig’ command. Even though dig is very much similar to nslookup, dig gives better results with details like set DNS server, a timestamp, and a query time. These actually help to resolve issues with the name server.