Tuesday, June 30, 2026
HomeAppleThe best way to Clear DNS Cache in macOS

The best way to Clear DNS Cache in macOS

[ad_1]

clear dns cache on mac

Often, you don’t must fiddle with a Mac’s DNS (Area Title System) cache. For probably the most half, it really works as anticipated within the background, routing you to the suitable web site as per the online handle. Overburden of such knowledge could result in a corrupted DNS cache on the Mac, leading to loading issues and the notorious 404 error. You’ll be able to rapidly troubleshoot the difficulty by clearing the DNS cache in macOS. Right here’s how.

There will be a number of elements affecting the DNS cache on macOS. It may be as a consequence of community assaults, viruses, or IP handle mapping corruption for well-known web sites.

As an illustration, whenever you sort “www.twitter.com” within the handle bar, your browser could redirect you to a different malicious web site that the attacker added to your Mac’s DNS (Area Title System) data. As a substitute of the Twitter homepage, you’ll proceed to get 404 errors.

The best way to Clear DNS Cache in macOS

Deleting the DNS cache in your Mac will clear all saved DNS lookup data. Right here’s how one can clear the DNS cache in macOS:

Step 1: Press Command + House and open the Highlight search menu.

Step 2: Kind “Terminal” and open the app. You may as well open Terminal on the Mac via Launchpad.

Step 3: When you open Terminal, sort the code under.

“sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder”

Step 4: Press Enter, and the Mac will ask you to substantiate your identification. Enter your password and press Enter once more to clear the DNS cache.

delete dns cache

When you clear the DNS cache in your Mac, problematic web sites on Safari ought to behave usually once more.

This trick works with macOS Huge Sur and newer variations. In case you are operating an older model of macOS, you should run the next command in Terminal.

  • For macOS El Captain or newer – “sudo killall -HUP mDNSResponder”
  • macOS Yosemite – “sudo discoveryutil udnsflushcaches”
  • For macOS Lion, Mountain Lion, and Mavericks – “sudo killall -HUP mDNSResponder”

Apple executives name the macOS ecosystem a safety nightmare due to Mac’s open nature to obtain unknown apps from the online. In case you are not cautious, you may find yourself putting in bogus or duplicate functions containing malware and viruses. Right here is the place third-party instruments corresponding to AdLock are available.

AdLock for Mac

Optimized for the M1 Macs, AdLock affords protected searching and anti-tracking instruments to assist shield your Mac from malware and dangerous recordsdata. The native software program comes with DNS filtering, HTTPS filtering, detailed statistics, and extra. Go forward, give it a attempt from the hyperlink under, and shield your Mac.

Obtain: AdLock – AdBlocker for Mac


We advise you bookmark this text and revisit it in the event you face net searching issues in your Mac sooner or later.



[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments