Clearing or resetting DNS caches for your Mac running machine is a good suggestion because it hurries up the lookups inside the similar host. However now and again we simply need to transparent the cache so it doesn’t hang the values which might be now not legitimate.

And it’s beautiful easy too. All you wish to have to do is execute one or a few instructions in Terminal and you’re all set.

In case you are the use of the newest macOS Mojave, click here to get the command on the way to reset DNS cache in macOS Mojave; for the remainder of the macOS variations, you’ll get the instructions underneath.

Step 1

Release the Terminal app, both by way of going into Packages > Utilities >, or by way of typing Terminal within the Sportlight.

Notice: Keyboard shortcut for Highlight: Command + Area.

launch terminallaunch terminal

Step 2

Consult with the listing underneath to search out the command in your macOS model. Reproduction its respective command, paste it in Terminal and hit Input. Must Terminal instructed asks for the password, input your Mac’s password and hit Input once more.

Notice: To determine which model of macOS you’re the use of, merely click on the Apple brand at the best left nook, choose About This Mac, and click on at the Evaluate tab.

insert command and hit enterinsert command and hit enter
“Prime Sierra” (Model 10.13)
sudo killall -HUP mDNSResponder; sleep 2
“Sierra” (Model 10.12)
sudo killall -HUP mDNSResponder
“El Capitan” (Model 10.11)
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
“Yosemite” (Model 10.10)
sudo discoveryutil mdnsflushcache;sudo discoveryutil udnsflushcaches
“Mavericks” (Model 10.9)
dscacheutil -flushcache; sudo killall -HUP mDNSResponder
“Mountain Lion” (Model 10.8)
sudo killall -HUP mDNSResponder
“Lion” (Model 10.7)
sudo killall -HUP mDNSResponder
“Snow Leopard” (Model 10.6)
sudo dscacheutil -flushcache
“Leopard” (Model 10.5)
sudo dscacheutil -flushcache
“Tiger” (Model 10.4)
lookupd -flushcache

That’s it! Your Mac’s DNS will have to now be resetted.

The submit How to Clear DNS Cache in macOS High Sierra or Older Versions seemed first on Hongkiat.

WordPress Website Development Source:

[ continue ]