Most useful way if you’re a network administrator, Server administrator or web developer. And you’re working with Mac OS X machine likely MacBook Pro, MacBook Air, iMac or Mac Mini. Furthermore, each version of Mac OS X has different- different command to reset DNS cache. So you should use exact command according to your system version of OS X.
You may be very familiar from DNS Cache because you may face a situation to DNS cache in Mac OS X. but here about DNS cache who are the beginner in networking. DNS Cache is a small database that maintained by a computer’s system (Mac, Windows, Linux), etc. it accepts DNS quires from local clients such as web browsers (Safari, Google Chrome) and mail transfer agnates. So it collects response from remote DNS servers. It caches the response to save time later.
we are happy to help you, submit this Form, if your solution is not covered in this article.
But sometimes it might be necessary to reset the cache immediately and re-quarry a DNS Server. Also, if your Mac machine isn’t using the latest DNS entries from the remote server, then you can restart your Mac to update its cached info. But you can’t change DNS entries on your server through restarting your Mac. But you should do Flush DNS Cache in Mac OS X El Capitan, OS X Yosemite, and earlier OS X.
We recommend you a terminal command to flush DNS cache in Mac OS Mojave, X EI Capitan, OS X Yosemite (10.10.4), MacOS Sierra (10.12).
For MacOS High Sierra and MacOS Mojave:
sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache;say MacOS DNS cache has been cleared
Terminal Command to flush the DNS Cache in Mac OSX EI Capitan.
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder;say flushed
Steps how to Flush DNS Cache in Mac OS X EI Capitan, OS X Yosemite, Sierra
To reset flush DNS cache in Mac you need to use the Terminal (known as CMD in windows).
Step 1. Launch Terminal using Spotlight (Command + Space) for Mac and Ctrl + Space for Windows keyboard.
Step 2. Enter bellow Command for Apple Mac OS X 10.10.4, OS X 10.11, 10.12 and in future coming OS X,
It’s Say flushed. So that’s it.
While you can use below command to reset DNS cache on OS X Yosemite 10.10. OS X 10.10.1, OS X 10.10.2 and OS X Yosemite 10.10.3, MacOS Sierra
- sudo discoveryutil mdnsflushcache
Do you want to know flush DNS has changed?
Then to determine if a name server or IP has actually changed, you can use the ‘dig’ command with the URL likely:
- dig yourdomain.com
Let’s know do you have any latest version of OS X cache tricks. Text us in the comment box.