Skip to content

Clear DNS Cache in the Apple Safari browser

Do you need to flush the DNS cache in the Safari browser on Mac, iPhone, or iPad? Here's a step-by-step guide on how to clear the DNS cache in Safari on Apple devices.

DNS cache in Safari temporarily stores IP addresses of web servers previously visited. It speeds up subsequent visits by bypassing DNS server queries. However, outdated or corrupt cache can cause issues.

To flush the DNS cache from Safari on macOS, we must first enable the Develop menu and then Empty Cache from the drop-down. We can use Airplane Mode, reboot the device, or Reset Network Settings for iPhones or iPads.

Clear DNS Cache in Safari browser
info icon
Note: The DNS cache of a web browser is independent of the DNS cache on your device. If we try to flush the system DNS cache, it might not clear Safari’s cached DNS.

In this guide, we have shared the steps to clear the DNS cache in the Apple Safari on Mac and iPhone or iPad devices.

Clearing the DNS Cache in Safari on Mac

The Safari browser on Mac does not have a dedicated option that can clear only the DNS cache. However, we can rely on the Empty Cache option that will delete the entire cache occupied in the browser, including the DNS cache.

The option to empty the entire cache is available under the develop menu, which we must first enable. Here are the steps to flush the DNS cache from Safari on macOS:

  1. Launch the Apple Safari on your Mac.
  2. Click on the Safari menu, and select the Settings sub-menu.
    Apple Safari Settings menu
  3. Switch to the Advanced tab and enable the check box for the Show Develop menu in the menu bar option.
    Show Develop menu in menu bar on Safari macOSIt will enable a new Develop menu in the Safari menu bar.
  4. Click on the Develop menu on the menu bar.
  5. Select Empty Caches from the drop-down menu.
    Empty Caches from Develop menu in Safari browserIt will clear and empty all the cache files stored, including the DNS cache.

As mentioned earlier, the Empty Cache option flushes out the entire browser cache occupied in Safari on macOS. Hence, you might notice the website loading slower after the action.

Flushing the DNS Cache in Safari on iPhone or iPad

Like macOS, Safari on iOS or iPadOS does not have an option. It does not even have the option to Empty Entire Cache on the device.

However, we can use the System’s DNS cache method to wipe out saved records. We can use Airplane Mode, Reboot, or Reset Network Settings on the device to reset the DNS cache.

Clearing DNS Cache with Airplane Mode on iPhone

  1. Slide down to open the Control Center on your device.
  2. Tap on the Airplane mode button to Turn On.
    Airplane Mode button under Control Center on iPhone
  3. Wait for a few seconds and then Turn Off the Airplane mode.

Since Safari on iPhone or iPad relies on system DNS, the Airplane mode will force the network adapter to flush the DNS records. This is probably the simplest way to clear the DNS for any browser (including Chrome, Edge, Firefox, etc.) running on hand-held devices.

Alternatively, you can Reboot the device for the network and DNS cache flush.

Clearing DNS with Reset Network Settings on iPhone

A more complex way to clear the DNS cache is by using the Reset Network settings option.

  1. Open the Settings app on your iPhone or iPad.
  2. Tap the General settings, and scroll to the bottom to select the Transfer or Reset iPhone option.
  3. Tap on the Reset command and select the Reset Network Settings option.
    Reset Network Settings option in iPhone Settings menu

The Reset Network Settings option is not recommended unless you have a major network-related issue. The Airplane mode resets the DNS cache on Safari for iPhone or iPad instead.

Bottom Line

The web browser has its own system-independent DNS cache that helps resolve the website for rendering. If you’re facing any network and page loading issues in your Safari browser, you can consider clearing the DNS cache.

Though there is no dedicated option to clear the only DNS cache, you can use the Empty Cache menu on macOS and Airplane Mode or Reset Network Settings option on iPhone or iPad.

If the network or page loading issue is not resolved after cleaning DNS records, you can clear the Safari cache and cookies. It will ensure the cached site files are deleted and fresh files are downloaded from the web server.

Lastly, if you've any thoughts or feedback, then feel free to drop in below comment box. You can also report the outdated information.

Please share the article if you find it helpful:

Disclosure: This page may contain affiliate links, which means we may receive compensation for your purchases; of course at no extra cost to you (indeed, you may get special discounts).
Kushal Azza

Kushal Azza

Kushal Azza is a Google Certified IT Professional, Digital Content Creator, and Go-To Digital Marketer with Engineering Degree. He has over a decade of experience solving tech problems, troubleshooting, and innovating digital solutions. Follow him on Twitter and LinkedIn.

Leave a thought or feedback

Please leave a descriptive comment or feedback with your real name. Our human moderator vets every comment, and it may take 24 to 48 hours to get published or rejected.

Your email address will not be published, and we will never spam your inbox. Required fields are marked *