How to Clear DNS Cache on Chrome, Firefox and Safari

Google chrome

To reduce unnecessary DNS queries, our computers and even our browsers keep a cached copy of the DNS records. And although they get updated or renewed after intervals of time, one might need to manually flush the DNS cache so that the earlier cached resolutions can be deleted and based on the new DNS settings, the subsequent lookups are done.

In this article, we take a look at how you can clear the DNS cache on your browser. While quitting your browser and restarting it automatically clears your DNS cache, the following are how you can do so within the browser itself without closing and reopening it.

Read:  How to Flush DNS Cache on Windows, macOS, Android and iOS

Table of Contents

1. Chrome Clear DNS Cache

Once you have Chrome opened up or already been working on it, this is how to do it on Chrome.

Open a new tab and in the address bar, type the address: chrome://net-internals/#dns

Chrome DNS

This should take you to a page looking like this, which shows you everything about the DNS records stored.

Click on “Clear Host Cache”

Chrome DNS

Next, you might need to clear the socket pools too. To do so,

Open another new tab. Type in the address: chrome://net-internals/#sockets

Chrome Socket Pools

This should take you to a similar looking page with the cached socket pools.

Click on “ Flush Socket Pools ”

Chrome Socket Pools

You’re good to go.

2. Firefox clear DNS Cache

The process is almost similar on Firefox except we need to change the value of two variables called network.dnsCacheExpiration and network.dnsCacheExpirationGracePeriod instead of clicking a single button.

Open a new tab Enter the address: about:config

You should be greeted with a warning page.

Firefox warning

Click on “I accept the risk!”

Next you should be on a page with various Firefox variables and a searcher on the top.

Firefox List of Variables

In the search bar, search for “network.dnsCacheExpiration”

Firefox DNS

Two results should be returned on your screen, namely network.dnsCacheExpiration and network.dnsCacheExpirationGracePeriod with the values set as 60.

Now, double-click on the value part where it says 60, and set it to 0.

Once done for both, again reset both of the values back to 60.

Firefox DNS Cache Expiration

Both of these variables basically store the TTL or Time To Live or essentially an expiration time for a DNS record, which is by default set to 60. By modifying it to 0, we are asking Firefox to immediately clear out the DNS cache and then we need to set it back to the default value.

If you do not have these variables, don’t worry, just create two new integer variables with the same names and set the values to 60, which is the default and follow the above instructions.

Right click to create an integer variable

Firefox New Variable

Set the name

Firefox New Variable Name

Set the value

Firefox New Variable Value

3. Safari Flush DNS cache

On Safari, we can empty the cache with an option or even a shortcut. But first, we need to enable the Develop menu in the Menu bar.

On Safari, go to preferences.

Click Command+, Go the Advanced section Mark the option which says “Show Develop menu in menu bar”

Safari Preferences

Now you should have a new Develop option in your menu bar.

Safari Clear Caches

Go to Develop. Click on “Empty Caches” or simply do it with a shortcut: Option+Command+E

4. Opera Clear DNS Cache

Clearing the DNS cache on Opera browser is very similar to that of Chrome, the only exception being the address; instead of “chrome”, it will be “opera”.

Open a new tab in Opera and type in the address: opera://net-internals/#dns

Opera DNS Cache

Click on “Clear Host Cache” to flush the DNS cache.

You also have to clear the Sockets Pool, either by clicking on the Sockets tab or

Type in the address: opera://net-internals/#sockets and click “Flush Socket Pools”

Opera Socket Pools

While flushing the DNS cache from the system using the command prompt or the terminal does most of the work, we should remember that most browsers(Internet Explorer does not for instance) also keep a cache of the DNS records within them and these should also be cleared for a proper clean. So these were the ways in which you can reset your DNS cache in various browsers.

Read:  Best DNS Servers For Speed, Stability, and Security

' src=

Sometimes I write. Business Enquiries: [email protected]

You may also like

Why is tiktok video quality bad after upload..., check what fingerprint is saved for biometric on..., how to use google meet companion mode on..., 10 fixes for chatgpt not working in google..., 8 reasons why your google chrome is slow, how to view and add notes on google..., what are the different buttons on siri remote..., how to share files using airdrop on apple..., 7 fixes for instagram not downloading reels on..., how to use iphone as passkey to login....

How to Clear the DNS Cache in Chrome, Edge, Firefox, Safari, and Opera

Your browser caches DNS data to load website faster. But what about if you need to clear this cache? Here's how to for all major browsers.

Network hiccups are an everyday sight for computer users. Most of the time, a simple system or router reboot fixes internet connectivity issues. But if these simple methods fail, you should do a complete network reset, which includes flushing the system DNS cache.

The DNS resolver cache holds a copy of the DNS records and reduces the time to access a website's IP address. We often clear the system DNS cache, but forget to clean the browser DNS cache. Here, we'll look at the importance of browser DNS caching and explain how to clear it.

Do Browsers Also Save a DNS Cache?

Yes. Web browsers maintain a copy of the DNS resolver cache. It is mainly to speed up the DNS lookup process and load the website faster. But in many cases, simply cleaning the system DNS cache is ineffective in fixing the website access issue. It could be because of the outdated or corrupt DNS resolver cache present in the browser.

It is wise to clean the browser's DNS cache along with the system's DNS cleanup. The process of clearing the DNS cache varies with different browsers. To simplify things, we will explain the DNS flushing process for Chrome, Edge, Firefox, Safari, and Opera separately.

How to Clear the DNS Cache in Google Chrome

The option to clear the DNS cache in Chrome isn't accessible via the Settings section. Here's how you can access and clear the DNS cache in Chrome:

  • Press Ctrl + T to open a new tab in Chrome.

Net Internals page in Chrome browser

  • Then, click on the Clear host cache button to wipe the local DNS cache.

How to Clear the DNS Cache in Microsoft Edge

Microsoft Edge switched to Chromium in 2020 to improve its stability and performance. Since it uses the same browser engine as Chrome, the DNS cache-clearing steps remain similar. Repeat these steps:

  • Open a new tab in Edge.
  • Click on the URL bar and type edge://net-internals/#dns command.

DNS settings page in Edge browser

  • Now, click on the Clear host cache button to flush the Edge browser's DNS cache.

How to Clear the DNS Cache in Mozilla Firefox

Mozilla Firefox doesn't use the Chromium engine. So, the process to clear the DNS cache entries is different from all the Chromium-based browsers. Use the following steps:

  • Launch Firefox and open a new tab.
  • Type about:networking command in the address bar and press the Enter key.

Firefox browser DNS records page

  • You will see a list of all the DNS cache entries saved in Firefox. Click on the Clear DNS Cache button to remove all the entries.

How to Clear the DNS Cache in Safari

Safari browser hides the DNS cache flush option inside the Develop settings. So, you have to enable the Develop menu first, and only then will you see the option to clear the DNS cache. Here's how to clear the DNS cache in Safari:

  • Go to the Safari menu bar and click on the Safari option. Click on the Settings option.

Enabling Develop option in Safari browser's menu bar

  • Lastly, click on the Empty Caches option in the drop-down menu. It will flush the browser's DNS cache.

How to Clear DNS Cache in Opera

Opera is also a Chromium-based browser and has an identical net internals page. Repeat the following steps to clear the Opera DNS cache:

  • Press Ctrl + T to open a new tab in Opera.

DNS settings page in Opera browser

  • The DNS page will launch. Click on the Clear host cache button to remove the DNS cache records.

Keep Your Browser's DNS Cache Fresh

A corrupt DNS cache can break access to your favorite websites. For Chromium-based browsers, the command to access and wipe the DNS cache records remains the same. However, if you use Safari or Firefox, the methods to clear the DNS cache are slightly different. Remember to clear browser cookies and site data if you still have trouble accessing a website.

How to clear the DNS cache on your iPhone, iPad & Mac

Is a stale DNS cache making your web browsing experience excruciatingly slow? If so, you may have thought about speeding things up by switching to an alternate domain name server on your device. In that case, you’ll need to clear the DNS cache on your device.

There are several ways to flush DNS caches in iOS and macOS, and this step-by-step tutorial covers them all! Here’s how to delete the DNS cache on your iPhone, iPad, Mac, and popular web browsers like Safari, Chrome, Opera, and Firefox.

Clear DNS cache Mac

The problem

If you cannot connect to some websites, a web page won’t load at all, or your network slows down randomly for no apparent reason, chances are your device’s DNS cache has become corrupted due to technical glitches, administrative accidents, or other reasons.

Aside from other reasons, the DNS cache may become polluted when unauthorized domain names or IP addresses are inserted via a network attack or malware/virus.

But worry not, resetting the DNS cache should help resolve those problems.

What is a DNS cache?

DNS, or “Domain Name System,” has been the staple of the Internet’s functionality since 1985.

In short, DNS is a decentralized naming system for devices connected to the Internet or a private network (VPN). The system assigns domain names to each of the devices while translating human-readable domain names like iDownloadBlog.com to the numerical IP addresses that identify services and devices with the underlying network protocols.

A DNS cache, also known as a DNS resolver cache, is a temporary database, a phone book of sorts, which helps speed up DNS lookups by storing records of all the recent network requests. Rather than having to memorize numerical IP addresses for your favorite websites, your device can tap into a cached table of recent DNS lookups to know how to load a web resource.

In other words, a DNS cache is just a memory of recent DNS lookups that your computer can quickly refer to when it’s trying to figure out how to load a website. A DNS cache is maintained by the operating system, but some browsers may keep their own DNS cache.

All caches can become corrupt over time, and that’s especially true with DNS caches. A corrupt DNS cache may lead to intermittent problems with loading websites. Therefore, clearing the DNS cache so it doesn’t hold invalid items is usually the best way to solve any such woes.

It is very important to stress that clearing the DNS cache won’t remove your browsing history, website data, saved passwords, or any other temporary Internet files that get saved to your device to speed up web page load times.

When and why should you clear DNS caches?

Here are a few common scenarios in which clearing the DNS cache may help.

  • Prevent DNS hijacking: This practice subverts the resolution of DNS queries, which can be achieved via malware or by modifying the behavior of a trusted DNS server to the point it no longer complies with Internet standards. Flushing your DNS cache minimizes the risk of DNS hijacking, which is a significant problem in China.
  • Resolve page-loading problems: Starting fresh is the best way of addressing situations when some websites won’t load, or web pages load slowly.
  • Server entries have changed: If an entry on the web server is changed or a new entry is added, you might need to flush the DNS cache immediately to prevent interruptions. Keep in mind that if you’re waiting for server-side DNS changes to propagate, adjusting your device’s DNS settings may not have the desired effect before the changes have carried over between servers around the world.
  • Using Google DNS or Open DNS servers: Before setting your device to use Google DNS or Open DNS servers as its DNS, which speeds up web browsing when on Wi-Fi, you’re advised to flush out the DHCP assignments by clearing out DNS caches.
  • Enforce network settings change: If you’ve made changes to your device’s network settings, like adding a custom DNS as part of your VPN service, clearing out the DNS cache will make these changes take effect immediately without any further action.
  • Protect from malware: A computer virus or malware may change your DNS settings in the background or fool you into changing them manually in order to redirect you to a page full of ads or a phishing page that mimics a legitimate website. Clearing out the DNS cache deletes all the entries, including invalid or rogue records.

Even if you’re not having any problems loading web pages whatsoever, clearing out a stale DNS cache won’t just make your web browsing experience hassle-free but will also clean up the valuable storage space in your device.

Your router has a DNS cache, too, meaning that any DNS troubleshooting steps should also include flushing the DNS cache on both the computer and the router.

Follow along with us as we explain how to clear the DNS cache on your iPhone, iPad, Mac, and leading computer web browsers.

How to clear DNS cache on iPhone and iPad

On iOS, you have three different ways of clearing the DNS cache. Firstly, you can toggle Airplane Mode on and then back off, which has the side effect of flushing the DNS cache. Secondly, you can simply reboot your device to achieve the same effect as the Airplane Mode method. And thirdly, dumping your network settings will also do the trick.

Use Airplane Mode

Toggling Airplane Mode is the quickest way to flush your DNS cache because doing so instantly turns off the wireless features on your device and shuts down cellular radios so that you comply with airline regulations. If you need to clear DNS caches multiple times per day, this is the method you’ll want to use (it works with cellular iPads, too).

1) Open Control Center by swiping down from the upper-right corner of the screen on iPhone X or later or iPad with iOS 12 or later. On older devices or iOS versions, swipe up from the bottom edge to pull up the Control Center overlay.

2) Tap the Airplane Mode icon in the top-left corner of the Network Settings card.

When Airplane Mode is toggled on, the icon turns orange to denote that all cellular services are currently shut down, which will also prompt iOS to flush the system’s DNS cache.

3)  After about 15 seconds, tap the Airplane Mode icon again to re-enable wireless services.

Clear DNS cache iPhone

You can also go to Settings > Airplane Mode and tap the slider to turn it on.

Reboot your iPhone or iPad

Restarting your device makes it fast and simple to flush the DNS cache.

1) Do the following:

  • On iPhone X and 2018 iPad Pro and newer: Press and hold the Side button and either volume button until the slider appears.
  • On older devices, like iPhone 8 and earlier: Hold down the Power button for a few seconds.

The Power button is also known as the Top button on iPod touch and iPad.

iPhone power buttons illustration

iOS restart buttons have been rechristened and repositioned over the years

2) Swipe the slider labeled Slide to Power Off .

Clear DNS cache iPhone by turning it off

3) After the device shuts down and turns off, wait a few seconds, then press and hold the Side/Top/Power button again until you see the Apple logo. As a security precaution, when the device reboots, you’ll need to enter your passcode to re-enable Touch ID or Face ID.

Shut Down iPhone from Settings to clear DNS

If your device is on iOS 11 and later, you can also turn it off in Settings > General > Shut Down .

Because rebooting takes more time than toggling the Airplane Mode on and then back off, this isn’t the best approach if you need to flush your DNS cache multiple times per day.

Note: Concerned about DNS hijacking? If so, this isn’t the safest method of flushing the DNS cache because the hijacking may occur immediately after the device reboots, before you even have the chance to connect to a VPN.

Network settings dump

Clearing the network settings on your device will also flush the system’s DNS cache.

1) Open Settings on your device.

2) Choose General from the list.

3) Tap Transfer or Reset iPhone .

4) Tap Reset and choose Reset Network Settings .

5) Type in your passcode , if asked, then confirm that you wish to clear out all network settings and return them to factory defaults.

iPhone Reset Network Settings

This may not be the best method because resetting your network settings won’t just restart the device (which clears the caches anyway) but also clear passwords for all the Wi-Fi networks you’ve joined. Worse, cellular data settings from your wireless provider will be cleared out, too, and all your other network settings will be lost, so you’ll need to set them up again.

How to clear DNS caches on your Mac

On macOS, the flushing of DNS caches is performed through Terminal commands that have changed over the years but don’t you worry a thing as iDownloadBlog has you covered.

1) First, open  Terminal from your /Application/Utilities folder or via Spotlight.

Clear DNS cache Mac - Terminal method

2) Type the command corresponding to your Mac operating system version, then press Enter .

  • macOS Big Sur, macOS Monterey (11.0, 12.0)

sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

  • macOS Sierra, High Sierra, Mojave, and Catalina (10.12, 10.13, 10.14, and 10.15)

sudo killall -HUP mDNSResponder; sleep 2

  • OS X Yosemite 10.10.4+ and El Capitan (10.11)
  • OS X Yosemite (10.10.0-10.10.3)

sudo discoveryutil mdnsflushcache; sudo discoveryutil udnsflushcaches

  • OS X Mavericks (10.9)

dscacheutil -flushcache; sudo killall -HUP mDNSResponder

  • OS X Lion and Mountain Lion (10.7 and 10.8)

sudo killall -HUP mDNSResponder

  • OS X Leopard and Snow Leopard (10.5 and 10.6)

sudo dscacheutil -flushcache

If, for some reason, the Terminal command for macOS Sierra and newer won’t work properly, feel free to use the following syntax instead:

sudo killall -HUP mDNSResponder; sudo killall mDNSResponderHelper; sudo dscacheutil -flushcache

You will need administrative privileges to execute these commands.

Bonus: Mac-cleaning software

If all of the above sounds too complicated, especially the Terminal method, consider a third-party solution such as MacPaw’s CleanMyMac , which is a much simpler alternative to clearing your DNS caches that works on all versions of the Mac operating system.

Clear DNS cache on Mac using CleanMyMac app

Start by downloading CleanMyMac from the MacPaw website for free .

After you install the app, launch it and click on  Maintenance  in the lefthand sidebar menu. Now select the option Flush DNS Cache and click Run to have CleanMyMac do its magic.

How to clear DNS caches in popular browsers

In addition to the system’s own DNS cache, most browsers (barring Internet Explorer) also keep a cached copy of the DNS records. This internal browser DNS cache may get corrupt over time and slow down lookups. Your browser automatically clears its cache when it’s restarted, but you can also do it manually without having to reopen the app.

1) Launch Safari on your Mac.

2) Enable Safari’s hidden Develop menu  by choosing  Preferences  from the Safari menu.

Safari Preferences Menu Bar

3) Click the Advanced tab.

4) Tick the box next to “ Show Develop menu in menu bar .”

Safari preferences - Show Develop in menu bar

Now the hidden Develop menu will appear in Safari’s menu bar.

5) Click the  Develop menu, then choose the option Empty Caches .

Clear DNS cache Mac - Safari Empty Caches

After clearing your browsing cache, be sure to quit and re-launch Safari for the best results.

1) Launch Chrome on your Mac

2) Type chrome://net-internals/#dns in the address bar, then press Enter .

3) You’ll be taken to the DNS section of Chrome’s internal settings page. Click DNS in the left-hand column (if not already selected), then click the button labeled Clear host cache to flush the DNS cache.

4) Open a new tab, then type in the address chrome://net-internals/#sockets and press Enter .

5) You’ll be taken to the section of Chrome’s internal settings page for cached socket pools. Click Sockets in the lefthand column, then click the button labeled Flush socket pools .

Now restart Chrome for the changes to take effect.

Clear DNS Caches in Google Chrome

1) Launch Opera on your Mac

2) Type opera://net-internals/#dns in the address bar, then press Enter.

3) You’ll be taken to the DNS section of Opera’s internal settings page. Click the button labeled Clear host cache to flush the DNS cache.

4) Open a new tab, then type in the address opera://net-internals/#sockets and press Enter.

5) You’ll be taken to the section of Opera’s internal settings page for cached socket pools. Now click the button labeled Flush socket pools .

Now restart Opera for the best results.

Clear DNS Caches in Opera

1) Launch Firefox on your Mac.

2) In the address bar, type about:config and press Enter.

3) Click Accept the Risk and Continue  on a warning page.

4) Use the search field at the top to search for “network.dnsCacheExpiration” .

5) Your search should return two variables, named “network.dnsCacheExpiration“ and “network.dnsCacheExpirationGracePeriod” . Double-click on each variable’s value part so you can edit it, then change the value from the default 60 to 0, which will prompt Firefox to immediately clear out its DNS cache.

6) After doing this, now set both variables back to 60 .

Restart Firefox to finish the process.

Clear DNS Caches on Firefox

Check out next:

  • 3 ways to change the default web browser on Mac
  • 33 things to do after setting up a Mac
  • The ultimate list of Mac keyboard shortcuts
  • iPhone 15 Plus vs. Pro Max
  • 3 Key Tech Trends to Watch in 2024

How to Flush DNS Cache on a Mac

How to clear the DNS cache on your Mac

clear safari dns cache

  • Shoreline Community College

clear safari dns cache

  • Western Governors University

What to Know

  • Type Terminal into Spotlight, or navigate to Go > Utilities > Terminal . 
  • In the Terminal window, enter the command: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder

This article explains how to flush the DNS cache on a Mac.

How Do I Reset My DNS on a Mac?

If you’re experiencing connectivity issues, you may be able to fix them by resetting the local record of domain name server (DNS) information stored on your Mac. This information may be outdated or corrupt, preventing websites from loading and slowing down your connection. To reset the DNS cache on a Mac, you need to enter a Terminal command on your Mac .

Here’s how to flush your DNS cache on a Mac:

Type Command + Space to open Spotlight .

Type Terminal , and select Terminal from the search results.

You can also access Terminal by navigating to Go > Utilities > Terminal .

Enter this command into the Terminal window: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder and then press Enter .

This command only works in macOS El Capitan and newer. If you have an older version of macOS, check the next section for the correct command.

Type your password, and press enter again.

The password will not appear in Terminal as you type it. Just type the password and press enter.

Your DNS cache will be reset, but there will be no message to that effect in the Terminal. When a new line appears, it indicates the command has been carried out.

How to Flush DNS in Older Versions of macOS

Older versions of macOS use different Terminal commands to flush the DNS. However, you start by opening a Terminal window regardless of which macOS version you’re using.

Here are the commands to flush DNS in each version of macOS:

  • El Capitan and newer : sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  • Yosemite : sudo killall -HUP mDNSResponder
  • Lion, Mountain Lion, and Mavericks : sudo dscacheutil –flushcache
  • Snow Leopard : sudo lookupd –flushcache
  • Tiger : lookupd –flushcache

What Does Flushing a DNS Do?

Whenever you try to access a website over the internet, you connect to a DNS server which tells your web browser where to go. The DNS server maintains a directory of websites and IP addresses , which allows it to look at the website address, find the corresponding IP, and provide it to your web browser. That information is then stored on your Mac in a DNS cache.

When you try to access a website you’ve been to recently, your Mac uses its DNS cache instead of checking with an actual DNS server. That saves time, so the website loads faster. The web browser doesn’t have to go through the extra step of communicating with a remote DNS server, which results in less time between entering a website address and the website loading.

If the local DNS cache is corrupt or outdated, it’s kind of like trying to use an old phone book or an address book someone has vandalized. Your web browser checks the cache to find an IP address for the website you’re trying to visit, and it finds either the wrong address or an unusable address. That can slow the process down or prevent websites or specific website elements, like videos, from loading.

When you flush your DNS cache, you instruct your Mac to delete its local DNS records. That forces your web browser to check with an actual DNS server the next time you try to access a website. You should always flush your DNS cache after changing the DNS servers on your Mac . It can also be helpful if you’re having connectivity problems.

Open the built-in Console log-viewer app on your Mac and type any:mdnsresponder into the search bar. Then, launch Terminal, type in sudo killall –INFO mDNSResponder , and press Enter or Return . Back in the Console app, you can view a list of cached DNS records.

To clear the DNS cache on Windows 10 , open the Run dialog box, type in ipconfig /flushdns , and click OK . You can also use the same command in the Windows command prompt if you want more information on the process.

DNS cache poisoning, also known as DNS spoofing, is when someone deliberately enters false or incorrect information into a DNS cache. After the false information is input, future DNS queries will return incorrect responses and direct users to the wrong websites.

Get the Latest Tech News Delivered Every Day

  • DNS Caching and How It Makes Your Internet Better
  • How to Clear Cache in Windows 11
  • How to Flush and Clear Windows DNS Cache
  • What Is DNS (Domain Name System)?
  • DNS Servers: What Are They and Why Are They Used?
  • How to Check DNS Settings
  • How to Delete Old Computer Name From Network in Windows 10
  • How to Make a Bootable Flash Installer of OS X or macOS
  • What Is a Command for Computers?
  • How to Delete a File in Terminal on Your Mac
  • How to Save Terminal Commands on a Mac
  • How to Find Yahoo's IP Address
  • Double Your Internet Speed for Free
  • Troubleshooting Slow Page Loads in Safari
  • Use DNS to Fix a Web Page Not Loading in Your Browser
  • Is Outlook Down? Check Outlook.com's Service Status

How to Flush DNS on Mac – MacOS Clear DNS Cache

In this tutorial, you will learn why flushing your DNS cache is important, and how you can clear the cache on your local system.

Here is what we'll discuss in this guide:

  • Why flushing DNS cache is important
  • How to access the terminal application on MacOS
  • How to clear DNS Cache for your MacOS version

What is DNS Cache?

DNS acts much like an internet phonebook. Think of what a phonebook does – it maps a person's name to their respected phone number.

DNS (short for Domain Name System) maps domain names to their associated IP addresses.

A domain name, such as freecodecamp.org , is easily read, understood, and recalled by humans.

IP addresses (IP is short for Internet Protocol) is an address that is machine-readable and consists of a unique series of numbers. These numbers identify a device connected to the Internet.

Their format is not that human-friendly since it is hard to remember an exact sequence of numbers each time you want to visit a website.

DNS then maps freecodecamp.org to its associated IP address - 104.26.3.33 .

Think of the DNS cache as a local storage area on your Mac.

It temporarily stores and keeps track of your computer's activity records like recent website visits.

Each time you visit a website by typing its URL (short for Uniform Resource Locator), the DNS cache will save the IP address associated with that website.

When you visit that same website for the second time, the lookup process is more efficient, and the lookup time is much shorter.

It helps save significant time.

Why Flushing DNS Cache Is Important

You should flush the DNS cache for a few reasons.

The two most important ones are:

  • Flushing DNS is a helpful step for troubleshooting Internet connectivity issues .

You may be getting DNS errors in your browser, such as the 'DNS Server Not Responding' message when trying to access a site and establish a connection.

Keep in mind that your local cache information can become outdated over time.

When DNS updates happen on a website, your Mac is still using the old, inaccurate information to load the requested page.

Flushing the DNS cache makes sure cache information is up to date.

  • Flushing the DNS cache prevents network security threats, malicious attacks, and DNS cache poisoning from happening .

Hackers can access and corrupt your saved DNS cache records.

For example, they could manipulate and change the IP address associated with a Domain Name of a website you have already visited and map it to a malicious one.

The next time you request to access that same website, there will be a redirection to a fake and corrupted URL.

Hackers can request personal and sensitive information, such as credit card numbers, and steal it.

Frequent flushing of the DNS cache will help prevent this from occurring.

How to Flush DNS Cache on MacOS

Clearing the DNS cache on your Mac is a relatively straightforward process, even if you don't have a lot of technical knowledge.

Here is what you will need:

  • Access to the command line,
  • Your computer password,
  • To enter a text command (the command will depend on the version of macOS you are running).

How to Access The Terminal Application on MacOS

macOS has a built-in CLI (Command Line Interface) named Terminal.app , which allows you to enter text-based commands that the Operating System will carry out.

There are a few ways to open the terminal.

The easiest way is through Spotlight search.

For this, you can:

  • Either navigate to the very top right corner of the screen and click on the icon that looks like a magnifying glass.
  • Or, you can also use the Command Space shortcut.

Both will open up the following window:

Screenshot-2022-04-20-at-10.07.52-AM

From there, start typing terminal and click on the Terminal.app option that appears.

You should see a window open that looks similar to the following:

Screenshot-2022-04-20-at-10.12.29-AM

How to Clear DNS Cache For Your MacOS Version

In the terminal window, you will then need to enter a command.

The command is different depending on the version of macOS you are running.

Each version of macOS has a version number and a version name.

To find out the macOS version on your computer, click on the Apple icon at the very top left corner of your screen. From the dropdown menu that appears, select About This Mac .

In the Overview tab, you will first see the version name. Then, underneath that, you will see the version number.

Screenshot-2022-04-20-at-11.07.26-AM

In the table below, you will see the versions of macOS in reverse chronological order – from the most recent one to the oldest one.

Navigate to your version of Mac and copy the respective command.

After typing the command and hitting enter, there will be a prompt for entering your computer's password.

Keep in mind that when you are typing your password, you will not be able to view what you are typing – not even any asterisks.

It appears as though nothing is happening, but rest assured that something is.

Once you have entered your password and hit enter, you will not see a message indicating that the process is complete.

Instead, you will view a new terminal prompt.

And there you have it – your local DNS cache is now clear.

Hopefully, this has helped resolve any connectivity issues you may be experiencing.

Clearing DNS frequently is always a good idea to help fix troublesome internet connections and ensure your system is secure from potential threats.

Thanks for reading!

Read more posts .

If this article was helpful, share it .

Learn to code for free. freeCodeCamp's open source curriculum has helped more than 40,000 people get jobs as developers. Get started

How to Flush DNS Cache on Mac

In this article you will find the following:

Most of the time, your Mac’s DNS cache isn’t something you need to worry about. It works quietly in the background, sending you to the right websites when you ask for them. But if it gets corrupted, then you can run into problems loading sites, with 404 errors being common. One solution is to clear the DNS cache on your Mac.

You can flush the DNS cache on your Mac by using the Terminal app. However, the steps you should follow are different for older macOS versions (e.g. macOS Catalina) compared to the new ones like Sonoma and Ventura. But worry not, below we’ll cover it all for you.

Now, let’s look at the symptoms that suggest it’s time to clean the DNS cache in macOS, along with how you can actually do that.

Before we start   If you’re flashing your DNS cache because you’re experiencing problems, you might have malware on your Mac. It’s worth running a scan with MacKeeper’s Antivirus just to be sure: Download MacKeeper . Open MacKeeper and select Antivirus from the menu. Click Start Scan . Wait for the scan to finish. If MacKeeper finds any suspicious files, take the recommended actions. Hopefully, your Mac is free of malware, but you should always make sure it’s protected. Try out MacKeeper and get one free fix to see what our professional antivirus software can do.
  • What is a DNS cache?

To understand what a DNS cache is, you first need to know what DNS is. When you load a website on your MacBook, you connect to a DNS ( Domain Name System ) server online. This looks at the web address in your browser, and it then checks that against a database of IP addresses. These IP addresses tell your web browser where to find the server that contains that website. This process is called a DNS lookup .

The DNS cache is a temporary database on your computer of all the recent DNS lookups it’s carried out. This enables your browser to resolve these lookups faster, thereby cutting down web page loading times.

  • How to check DNS cache on Mac

It’s important to check the DNS cache on your Mac before freeing up space, as you’ll then be able to determine whether you actually need to take action or not. Here’s how to check DNS cache in Mac before you delete anything:

  • Open the Console app, select your Mac, and then enter any:mdnsresponder in the search bar.
  • Open a Terminal window, and enter sudo killall –INFO mDNSResponder .
  • Enter your password when prompted. Note that the password won’t appear on your screen, but if you type it correctly and press the Enter key, you should still be fine.
  • Go back to the Console app and view the list of cached DNS records.

You can also see the DNS cache on your Mac via your web browser. For example, if you’re using Chrome, enter chrome://net-internals/#dns in the address bar to see the list of cached DNS records.

To see the DNS cache on your Mac, start by opening the Console app. Type any:mdnsresponder in the search bar and hit the Enter key.

  • Should you flush the DNS cache on Mac?

Over time, the DNS cache can become outdated or corrupted—leading to connectivity problems. It can also be affected by malware, causing your browser to take you to malicious sites or phishing schemes.

Performing a Mac DNS cache reset can eliminate these problems. However, if you do find your browser redirecting to malicious sites, it’s not enough to clear cache on your Mac. Also, our team suggests you run a malware scan on your Mac with the help of MacKeeper’s Antivirus.

Here are some of the common internet browsing problems that you can fix when your Mac refreshes the DNS:

  • DNS spoofing
  • Trouble accessing websites
  • Your search behavior not being private
  • DNS record propagation

Now, let’s look at each of these issues—and how to prevent them—in further detail.

1. Prevent DNS spoofing

DNS spoofing involves a criminal using your DNS records to load malicious websites on your device. These redirects occur even when you type perfectly legitimate URLs, and they can lead to both fraud and performance-related problems for your computer.

2. Error 404

Error 404 is one of the most common internet browsing issues, and it typically occurs when a page on the website you’re trying to visit is no longer available. Although 404 errors are often reasonable, you can sometimes see the problem if you don’t regularly empty the DNS cache on your Mac.

3. Trouble accessing a website

Besides seeing 404 errors, web pages might take a long time to load if your DNS cache is full. Long loading times will become irritating over time and stop you from getting the information you require. So, it’s in your best interests to view the DNS cache on Mac and refresh when you feel like it’s becoming an issue.

Hint from our team:   If you’re having slow internet problems, you can perform numerous other steps to get back on track. For example, try turning off your VPN or resetting your Wi-Fi router.

4. Keep the user's search behavior private

When you surf the web, others can see your online activity—especially when you use a public Wi-Fi network. But even if you don’t, advertisers and other third parties can view your search information via your IP address. One way to tackle this is to clean the DNS cache on Mac. This way, advertisers will find it harder to see your search behavior, and so will your internet provider.

5. Prevent DNS record propagation

DNS propagation refers to the time required to update your online DNS records. If you want to remain more private online, clearing your DNS cache can stop propagation. The reason is that it takes time to successfully update your records.

  • How to clear DNS cache on Mac manually

The steps to empty the DNS cache on your Mac can vary depending on your macOS version. For your convenience, our experts have divided the instructions on how to perform the Mac delete DNS cache process for various iterations of macOS.

Delete your DNS cache in recent versions of macOS—Sonoma, Ventura, Monterey & Big Sur

For newer macOS versions (2020 and later) , you’ll need to follow the instructions explained below:

  • Click the Spotlight search button in the toolbar at the top. Alternatively, use Command+Space to do a search.
  • Type in Terminal , and double-click the Terminal application under Top Hit to open it.
  • Once Terminal is open, enter this command: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder.
  • Enter your Mac’s password and then press Enter to clear the DNS cache.

Begin clearing the DNS cache on your Mac by going to the Spotlight app. You can access it via the search bar or by pressing command + S on your keyboard.

Clear the DNS in macOS Catalina and older versions

Older macOS versions use different commands. To flush the DNS cache in these older versions, enter these in Terminal:

  • In macOS El Capitan or newer , run sudo killall -HUP mDNSResponder.
  • For macOS Yosemite , enter sudo discoveryutil udnsflushcaches.
  • In Mac OS Lion, Mountain Lion and Mavericks , the command is sudo killall -HUP mDNSResponder.
  • In Mac OS Snow Leopard , enter sudo dscacheutil –flushcache.
  • For MacOS Leopard , run sudo lookupd –flushcache.
  • In Mac OS Tiger, use lookupd –flushcache.

Once you’ve flushed the DNS cache on your Mac, check the problematic website to see if the problem is fixed, and you’re able to visit the site normally again. If you’ve been wondering why your Safari is so slow and the problem persists post-DNS cache clearing, try other solutions. For example, delete needless extensions and close energy-consuming apps.

  • Flushing your Mac DNS cache: Easy and essential

You should see the DNS cache on Mac as a good starting point for solving issues you may have while browsing the web. For example, web pages that won’t load properly are often a symptom of a DNS cache that requires a clearout.

If clearing the DNS cache didn’t work, your Mac could have bigger problems that you must address. Malware might be one of these, and you can check for viruses and whatnot with MacKeeper’s Antivirus. Our tool automatically searches for and quarantines malware, enabling you to do the easy work of removing it and enjoying your browsing experience once more.

1. How often should I flush the DNS cache on Mac?

There’s no recommended time span. You can purge your Mac’s DNS cache as often as needed without harming your device, and it’s a good idea to do it every six months or so.

2. Is it safe to flush DNS cache?

Yes, it’s safe to flush DNS cache on your Mac. Cached data is simply temporary storage. Having said that, you shouldn’t clear the DNS cache every day, as this would stop it from doing its job of making the page load faster.

Besides, clearing your Mac’s DNS cache can help you hide your search behavior, protect against manipulation by cybercriminals , and solve technical problems when accessing web apps. But there’s no point in doing it all the time if you don’t need to.

3. How do I clear DNS cache in Safari?

Safari browser also keeps a DNS cache. When you restart the browser, it clears the cache automatically, but you can do the same manually without relaunching the app .

  • In Safari, go to Safari > Settings in the menu bar.
  • Click Advanced and then tick the Show features for web developers box to enable the Develop menu.
  • From the menu bar, select Develop > Empty Caches . Once your browser cache is cleared, quit and relaunch the browser.

clear safari dns cache

Once you’ve cleared the DNS cache in Safari, you should find that your browser runs much more effectively than before.

Read more guides:

  • How to Use Incognito Mode in Safari
  • How to Use Internet Explorer for Mac
  • Removing the Bing Redirect Virus From Your Mac
  • How to Clear the Download Cache in Steam on a Mac
  • 3 Ways to Kill Background Processes Running on Your Mac

*You can download the app for free and try its functionality yourself before making a purchase.

You’ll love exploring your Mac with us.

Oops, something went wrong.

Try again or reload a page.

icon

  • Delete unnecessary system files and caches
  • Free up GBs of storage space
  • Easily find and delete duplicate files

PC

MacKeeper - your all-in-one solution for more space and maximum security.

We respect your privacy and use cookies for the best site experience.

Privacy Preferences Center

We use cookies along with other tools to give you the best possible experience while using the MacKeeper website. Cookies are small text files that help the website load faster. The cookies we use don’t contain any type of personal data meaning they never store information such as your location, email address, or IP address.

Help us improve how you interact with our website by accepting the use of cookies. You can change your privacy settings whenever you like.

Manage consent

All cookies

These cookies are strictly necessary for enabling basic website functionality (including page navigation, form submission, language detection, post commenting), downloading and purchasing software. The website might malfunction without these cookies.

Download MacKeeper when you're back at your Mac

Please enter your email so we can send you a download link

Check your email on your Mac

Install MacKeeper on your Mac computer to rediscover its true power.

arrow

Run Application

step_1

Click Continue

step_2

Click Install

step_1

Your macOS version is lower than OS 10.11. We’d like to offer you MacKeeper 4 to solve the cleaning, privacy, and security issues of your macOS.

A complete Guideline to Tech Things

How to Clear DNS Cache on Chrome, Edge, Firefox, Opera, and Safari

Rishi

  • March 13, 2023

:Are you experiencing sluggish loading speeds or difficulty accessing certain websites? It could be due to a dated or corrupted DNS cache resting in your web browser. You should clear your DNS cache when troubleshooting internet connection or website loading errors. This way you can quickly eliminate any problems and optimize your browsing experience.

How to Clear DNS Cache on Chrome, Edge, Firefox, Opera, and Safari

To help make this process easier for those using Chrome, Edge, Firefox, Opera, and Safari browsers – we have put together a guide on how to efficiently clear their respective caches.

1. How to Clear DNS Cache on Google Chrome

Clearing your DNS cache on Chrome is a quick and easy process that can help you fix website loading issues. To do this, follow the steps outlined below:

  • Open your Chrome browser.
  • In the address bar type, chrome://net-internals/#dns and press Enter.
  • Click on the Clear host cache button.

Clear host cache in Opera

Close and re-open your Chrome browser for the changes to take effect.

2. How to Clear DNS Cache on Microsoft Edge

If you’re experiencing website loading issues on Edge, clearing your DNS cache may help. Follow the steps outlined below to do it:

  • Open your Edge browser.
  • Type edge://net-internals/#dns in the address bar and hit Enter.
  • Look for the Clear host cache  option and click on it.

Clear DNS Cache in Opera

After you are done, you can close and re-open Edge for the changes to take effect.

3. How to Clear DNS Cache on Mozilla Firefox

Keeping your DNS cache clear within Firefox can help you experience faster web browsing, as it stores the IP address of a website when you visit and uses this to streamline loading on later visits. To ensure that Firefox is using the latest IP address information for each site, follow these steps to do it:

  • Open the Firefox browser.
  • Type about:networking in the address bar and hit Enter.
  • Click DNS in the left-hand sidebar.
  • Now click the Clear DNS Cache button.

Clear DNS Cache in Firefox

Wait for a few seconds while Firefox clears the DNS cache. Once complete, you can now close the page and start surfing the web with a fresh DNS cache.

4. How to Clear DNS Cache on Opera

Having a clear DNS cache can help Opera users experience faster web loading times as it stores the IP address of websites when you visit them. To clear it, follow these steps:

  • Open the Opera browser.
  • Type opera://net-internals/#dns in the address bar and hit Enter.
  • Click the Clear host cache button. This will delete the DNS cache in Opera.

Clear DNS Cache in Opera

Wait for a few seconds and you can now close the page and start surfing with a fresh DNS cache.

5. How to Clear DNS Cache on Safari

Clearing the DNS cache on Apple’s Safari browser is a simple process that can help resolve certain issues with webpages loading properly. To clear DNS Cache on the Safari browser, follow these steps:

  • Open your Safari browser and click on the Safari menu.
  • Select the Preferences option from the drop-down list.
  • In the Advanced tab, check the box next to the Show Develop menu in menu bar option.
  • Click on the Develop tab that appeared in the menu bar.
  • Select Empty Caches  from the drop-down list.

Close the browser and re-open it to ensure that your changes have taken effect. This way you can easily clear your DNS cache on Chrome, Edge, Firefox, Opera, and Safari and enjoy faster loading times for websites you visit frequently.

Frequently Asked Questions | DNS Cache

1] what is dns cache.

A DNS cache, also known as a DNS resolver cache, is a temporary database that stores the IP address of every website you visit along with other information related to resolving domain names. This means that your computer can quickly look up the site’s IP address instead of needing to query a DNS server every time you want to visit the website.

2] Does clearing the DNS cache affect website performance?

Clearing your DNS cache can help improve website performance if you are experiencing any issues related to loading web pages. It can also help improve security by preventing malicious sites from being accessed.

3] Is there any other way to clear the DNS cache?

Yes, you can also use the Terminal to clear your DNS cache. To do this, open the Terminal app and type in ipconfig /flushdns and press enter. This will flush your DNS cache and you should then be able to access web pages without any problems.

4] Do I need to restart my computer after clearing the DNS cache?

No, you do not need to restart your computer after clearing the DNS cache. However, it is recommended that you close and re-open your browser for the changes to take effect.

  • Safari vs. Chrome: Which is Better for Mac Users?
  • Chrome vs. Firefox 2022: Which One Is Better Browser?

Related Stories

Clear Autofill on Google Chrome

How to Clear Autofill Entries on Chrome

  • January 1, 2024

Fix Chrome GPU Process High Memory Usage

How to Fix Chrome GPU Process High Memory Usage

  • October 1, 2023

Ad Privacy setting in Chrome

How to improve privacy on Google Chrome

  • September 1, 2023

How to Fix ERR_NETWORK_CHANGED in Chrome

How to Fix ERR_NETWORK_CHANGED in Chrome

  • July 10, 2023

iGB Logo

How to flush your DNS cache on Mac 

Bhaskar

You may occasionally need to remove the DNS cache on your Mac after changing the host’s file or troubleshooting a problem. Even though it requires using the command line, clearing DNS on Mac is often considered an expert’s task. However, after reading this article, all Mac users should find the process rather simple.

How to clear DNS cache in macOS Ventura and Monterey

What is a dns cache, why should you clear dns cache on mac.

Open Terminal from Launchpad on Mac

  • Paste the command below in the terminal. sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  • Press the return key.
  • Enter your password .

How to clear DNS cache on Mac

The password will not be seen in the terminal for security reasons.

Even though nothing will appear on the command prompt screen, your DNS cache will be flushed as soon as you press the return key.

Let’s first check what DNS is before moving forward to the DNS cache. To put it simply, DNS (Domain Name System) converts human-readable domain names like www.igeeksblog.com to computer-readable IP addresses like 104.26.11.8.

A DNS cache is temporary storage on a computer, smartphone, server, etc., that holds DNS records of previously visited domain names, such as a record for IPv4 addresses, AAAA records for IPv6, etc. It is often referred to as the DNS resolver cache.   Depending on the time-to-live (TTL), DNS keeps records of a website and its addresses which are stored in this fictitious database of information. In essence, the DNS cache is how your device tries to save time and effort by responding to a DNS query with a DNS record already present in the temporary DNS cache, rather than having to perform a lengthy DNS lookup.

  • The bigger the collection of cached addresses, the more you are revealing about yourself to the online world. Hence, it needs to be cleared.
  • Hackers may be able to access your entries and drive you to bogus websites if they have access to the DNS cache.
  • Technical issues can be resolved by doing a DNS flush. For example, when the erroneous version of the searched website is shown as a result of out-of-date entries. The connection to the web project is established after a flush, and the appropriate DNS server responds to the request again.  

Clear DNS just for the Google Chrome browser. Open Chrome → enter chrome://net-internals/#dns in Chrome’s address bar → click Clear host cache .

You can clear the safari cache easily by following the steps in our article about clearing the Safari cache, history, and cookies on Mac .

Is it safe to clear DNS cache?

Yes, flushing the DNS cache on your Mac is secure. Although cached data is only temporary storage, clearing the DNS cache too frequently may affect the website load time. Did you succeed in clearing the DNS on your Mac, or did you run into trouble? Comment below, and I’ll try to respond as soon as possible.

Read more:  

  • Wi-Fi not working on Mac?
  • How to Change DNS on Your iPhone and iPad
  • How to fix ‘Network is blocking encrypted DNS traffic’ on iOS

clear safari dns cache

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Save my name, email, and website in this browser for the next time I comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed .

How to Clear your DNS Cache in macOS

Nick deCourville

It’s pretty easy to clean your DNS cache using macOS, and there’s a couple of reasons why a user may need to do this. I’m going to explain what DNS cache is, why a user may want to clear it, and also show how to perform this task using virtually any version of macOS. Following the steps is rather simple, though users will be exclusively using the terminal.

DNS, or Domain Name System cache is a user’s record of all queries made to a DNS server from a web browser. When a user inputs a URL into their browser, this sends a request to a DNS server to ask for the IP address for the URL. Your browser will then load the website after receiving the IP address. Your computer then keeps a copy of these records. Therefore, flushing your DNS cache clears IP addresses as well as other DNS records.

Why Should I Flush My DNS Cache?

There’s a couple of reasons why a user may want to delete their DNS cache. Primarily, users will delete it if they were tinkering around with certain files. However, clearing your DNS cache can also be useful for security purposes. For example, bad actors can attack your machine and gain access to your DNS cache. You may know this is occurring if your browser continues to redirect you to fraudulent websites.

In other cases, clearing your DNS cache is also useful for regaining access to certain websites. If a website recently moved to a new domain name, your computer may not update the information right away, and you may see a 404 error for that website. However, clearing temporary files and cookies is typically an easier solution for this.

Additionally, clearing your DNS cache can also be useful for privacy. Considering this cache is essentially a ledger of the websites you visit, flushing your cache can keep this information away from bad actors or data collectors.

Besides using your macOS to clear your DNS cache, there are also many cleaning apps that can help you erase cache more extensively.

For instance, Intego Washing Machine caught our attention a while ago because of its capability to delete cache files, temporary files, duplicate files, and many more, optimizing the macOS with a single click.

clear safari dns cache

Intego Washing Machine

Clear your dns cache within macos ventura and macos monterey.

To clear your DNS cache in macOS Ventura and macOS Monterey, you’re going to be using terminal to accomplish this.

Time needed:  2 minutes

How to clear your DNS cache in macOS Ventura and Monterey

You can also find your Terminal through Spotlight by pressing Command + Spacebar. Type ‘Terminal’ into Spotlight and select it.

clear safari dns cache

You can now quit the Terminal.

And that’s all there is to it! One simple command in Terminal will flush-out your DNS cache. For those using older versions of macOS, the command is different. For the following versions of macOS, you can follow the same steps as above, but replace step two with the following commands:

  • macOS Lion, Mountain Lion, Maverick, El Capitan, Sierra High Sierra and Mojave: sudo killall -HUP mDNSResponder
  • Yosemite: sudo discoveryutil mdnsflushcache
  • Tiger: lookupd -flushcache

Moreover, check out how to clear browser cache on Mac for Chrome, Firefox and Safari .

Flushing your DNS cache on a regular basis can be a good idea for privacy and security purposes. If you are having issues visiting certain websites, or are just looking for an additional element to protect your computer from phishing and other security attacks, it may be a good idea to clear your DNS cache. Fortunately, it’s as simple as going to your Terminal and entering a command.

Following the steps above, this method can ensure that you have a clear DNS cache. Be sure to remember to use the right command for whatever version of macOS you are using. Other than that, following the steps should be rather simple. If you haven’t flushed your DNS cache in awhile, it may be a good idea to do so.

Leave a Reply Cancel reply

You must be logged in to post a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed .

  • Nick deCourville

clear safari dns cache

  • ADB and Fastboot
  • Keyboard Shortcuts

How to Clear DNS Cache in Chrome, Edge, Firefox, Opera & Safari

  • by Rakesh Shukla
  • January 20, 2024

The DNS cache stores information about previously visited websites, allowing quicker access to these sites by translating domain names into IP addresses. However, this cache can become outdated or corrupted over time, leading to problems such as failed connections, or delays in accessing fresh content. In this tutorial, we will check out the ways to clear the DNS cache in Chrome, Microsoft Edge, Mozilla Firefox, Opera, and Safari web browsers.

The first thing that comes to our mind to solve browser errors and webpage loading issues is to clear the browser data and cookies . In most cases, flushing the DNS cache on your Windows PC can resolve problems related to website loading. However, sometimes we simply need to clear the DNS cache in Chrome to get rid of such issues.

Below, we’ll see how we can clear the DNS cache in major web browsers like Chrome, Edge, Firefox, Opera, and Safari.

How to Clear DNS Cache in Chrome

While you can easily clear browsing data and cache from Google Chrome’s Settings page, there’s no way to do the same when it comes to clearing the DNS cache. You need to use a command in the URL bar to access the option to clear the DNS host cache. Let’s see how to do it.

  • In the Chrome address bar, type chrome://net-internals/#dns and press Enter . This will take you to the DNS page on the Net Internals site.

clear the dns host cache in google chrome

  • Close all tabs in Chrome and restart the browser. This will force all DNS lookups to be performed afresh, which may take a few seconds longer than usual but it will clear any cached DNS entries.

To use this browser more efficiently, you should check out these Google Chrome keyboard shortcuts .

How to Clear DNS Cache in Edge

You must have noticed that there is a great similarity between Microsoft Edge and Google Chrome. It’s because Microsoft switched to the Chromium open-source web browser project for Edge back in 2020. Thus, both browsers share their settings, extensions, flags , etc. This means that the method to clear the DNS cache in Edge is the same as in Chrome.

Clearing your DNS cache can help resolve these issues and is a relatively easy process. Here’s how to clear the DNS cache in Edge:

  • Open the Edge browser and type edge://net-internals/#dns into the address bar.

flush dns cache in microsoft edge

  • Doing so will clear the DNS cache in Edge.
  • Close the Network Internals tool page and restart Edge for the changes to take effect.

How to Clear DNS Cache in Opera

Just like Google Chrome and Edge, Opera is a Chromium-based web browser. You can clear the DNS cache in the Opera browser the same way. Here’s how to do it:

  • Open Opera, type or paste opera://net-internals/#dns into the address bar, and press the Enter key.
  • It’ll open the DNS options page.

clear dns host cache in opera

  • That’s it! Now, restart the browser.

How to Clear DNS Cache in Mozilla Firefox

The method to clear the DNS cache in Mozilla Firefox is different than the Chromium-based browsers mentioned above. However, it’s a relatively simple process that can help resolve various browsing issues and enhance internet connectivity. Here’s how to flush the DNS cache in Firefox:

  • Type about:networking#dns in the address bar of the Firefox browser. Press the Enter key.

clear dns cache in mozilla firefox

  • The DNS cache will be flushed instantly.

There’s yet another way to flush the DNS cache in Firefox.

  • Type about:config into the Firefox address bar and press Enter.
  • Search for “ network.dnsCacheExpiration “.

set dns cache expiration in firefox

  • Close the about:config tab and restart Firefox for the changes to take effect.

Your DNS cache should now be cleared.

How to Clear DNS Cache in Safari

The option to clear the DNS cache in Safari remains hidden in Safari by default. It’s pretty much like Android’s hidden Developer options . You must enable Safari’s Develop menu to access the Empty Caches option. Let’s see how to do it.

  • Launch Safari on your Mac.
  • Go to the Safari menu bar located at the top of the screen and click on Safari > Preferences .
  • In the Safari settings or preferences window, click on the Advanced tab.

enable safari develop menu from settings

  • Close the Advanced Preferences window.
  • You’ll have a new item in the Safari menu bar called “ Develop “.

clear dns cache in safari browser

You may also need to force quit Safari using the Command + Option + Esc Mac keyboard shortcut and then relaunch it for the changes to take effect.

While clearing the DNS cache won’t necessarily speed up browsing significantly, it can help resolve certain issues that may be caused by incorrect or outdated data stored in the system. Next time you run into an issue with your browser, consider trying to clear out its DNS caches before doing anything else.

Read Next: 73 Google Search Tricks, Hacks, and Easter Eggs

Related Posts

clear powershell and command prompt history

How to Clear PowerShell and CMD Screen and Command History

galaxy s24 bloatware

Samsung Galaxy S24 Bloatware List and Removal Guide

Fix exception occurred while executing adb command on samsung devices

Fix “Exception Occurred while Executing Command” on Samsung

uninstall system app android

3 Ways to Uninstall Bloatware on Android without Root

samsung pay on galaxy watch

How to Set up and Use Samsung Pay on Galaxy Watch 4/5/6

manage app permissions via adb

How to Grant and Revoke Android Permissions via ADB

xiaomi mi flash tool

Download Latest Mi Flash Tool for Windows (All Versions)

control android accessibility settings using adb commands

How to Control Android Accessibility Settings via ADB

TY Logo

How to Clear DNS Cache in Chrome, Edge, Safari, Firefox, and Opera

Sushan Chakraborty

A Domain Name System (DNS) server is invoked every time you try to visit a website on your computer via a web browser. The DNS server translates the domain name to its IP address equivalent. The conversion is time-consuming, as the resolver, root server, and Top-Level Domain (TLD) server are all involved in the process.

To make the task more efficient, your computer’s operating system maintains a temporary database, containing all the visits and attempted visits to websites and different internet domains. That database is called a DNS cache or DNS resolver cache.

It works by keeping a journal of all your recent DNS lookups, making sure the operating system can simply refer to the sheet instead of performing a complete lookup to load a previously-visited website.

Today, we will check out what the purpose of clearing your DNS cache is and how to perform it in Google Chrome, Microsoft Edge, Safari, Mozilla Firefox, and Opera browsers.

When Is it Required to Clear DNS cache? 

DNS cache acts as an internet directory, making it easy for your system to load familiar web pages. However, the cache is not immune to network attacks, administrative accidents, and computer viruses. If your DNS cache is exposed to such attacks or mishaps, there is a chance of DNS Poisoning or Pollution.

A DNS cache is considered poisoned or polluted when incorrect DNS entries are added to the cache. When that happens, your requests are redirected to a different, often malicious website. They can even look like the original website but tend to extract sensitive info from visitors.

If your computer has been compromised in such a manner, flushing or clearing your DNS is the best way to get things back on track.

What Is the Benefit Of Flushing Or Clearing DNS?

DNS pollution or poisoning occurs when a malicious agent infiltrates the cache and replaces original entries with fraudulent ones. By flushing your DNS cache, you ask your system to delete all the entries in the cache and make build them back up from scratch. 

For example, if your compromised DNS cache redirects Facebook.com to a duplicate website, flushing your DNS would go a long way in solving the problem. Since it will delete the current entries, chances are that the original IP address would be fetched when you try to open Facebook.com after flushing.

Clear Operating System DNS Cache

Flushing your DNS is not dependent on your web browser, as they do not contain the database. The database is maintained by your operating system and sometimes the router. So, those two need to be reset first. Only after clearing them, you can move on to your browsers and either delete history or reset them completely.

Flush DNS Cache in Windows

1. Run the Command Prompt in administrator mode. You can look for “CMD” in the search and then click on the Run as administrator option. 

Run Command Prompt as Administrator

2. Once the Command Prompt opens, enter the following command: 

3. If the flushing is successful, you will see either see the “Windows IP configuration successfully flushed the DNS Resolver Cache” or “Successfully flushed the DNS Resolver Cache” message.

Flushed DNS Resolver Cache

4. Restart your computer and you are good to go. 

Flush DNS Cache in macOS

Akin to Windows’s Command Prompt, you need to go to the Terminal on Mac to flush your DNS.

1. Hit Command+Space to access the Spotlight Search. 

2. Type “Terminal” and click on the “Terminal” application when the list shows up. Alternatively, you could go to Utilities and open Terminal from there. 

Open Mac Terminal

3. In some cases, you need to terminate the DNS responder after you perform the flush. So it is a good idea to execute the two commands at once and then press Enter.

Run Flushcache Command on Mac

4. You will be asked to enter your Mac password. Pay special attention while entering the password, as the Terminal window does not show how many characters you have typed so far. Press Enter after putting in your password.

5. Unlike in Windows, macOS’ Terminal does not show a completion message. You will know that the command has been carried out if a new line appears.

Clear Your Router’s DNS Cache

If you have a router hooked up, chances are, it also has a temporary DNS cache. Fortunately, you do not need to jump through hoops to clear your router’s cache. All you need to do is turn the router off and turn it back on after a couple of minutes. Upon restarting the DNS cache of the router will be completely reset. 

Clear DNS Cache in Web Browsers

Below, we will check out the ways you could erase the history of your web browsers or reset them completely.

Clear DNS Cache in Google Chrome

1. Click on the vertical ellipsis button (…) in the top-right corner of the browser window. It is located just under the Close button. 

2. Go to Settings . 

Browser Settings

3. On the left side of your screen, you will see a number of tabs. Click on Privacy and security . 

4. Click on Clear browsing data .

Chrome Clear Browsing Data

5. You will see the time range at the top of the pop-up. Select the affected time range. If you are unsure, you can pick All time . 

6. After you check the Browsing history, Cookies and other site data, and Cached images and files options, click on Clear data . Wait for the operation to complete and restart Google Chrome. 

Tap on Clear Data

Alternatively, you could: 

1. Click on the vertical ellipsis button (…).

2. Expand History and click on History . 

History

3. Click on the Clear browsing data option on the left-hand side of your screen. 

Tap on Clear Browsing Data in Sidebar

4. Select a time range, pick what you want to delete, and finally click on Clear data . 

Clear DNS Cache in Microsoft Edge

Microsoft Edge is based on the same platform as Google Chrome. However, clearing browsing data on the browser is a little bit different from Google Chrome.

1. Fire up the browser and click on the ellipsis (…) button in the top-right corner of your screen. 

2. Next, go to Settings . 

Settings in Browser

3. On the top-left portion of your screen, you will find a hamburger menu button. Click on it to expand. 

4. Go to the Privacy, search, and services option. 

Privacy Search and Services

5. You will find the tracking prevention measures at the top of the page. Scroll down to the Clear browsing data section and click on Choose what to clear button.

Edge Choose What to Clear

6. Select the time range, between Last hour and All time .

7. Then, select what you want to delete, Browsing history , Download history , Cookies and other site data , and Cached images and files . 

8. Finally, click on the Clear now button to delete all selected items. 

Edge Clear now

You could also delete just your browsing history on Microsoft Edge without going into Settings. Here is how:

1. Click on the ellipsis (…) button at the top-right corner of the Microsoft Edge browser window.

2. Now, instead of going to Settings, you need to click on History . Alternatively, you could use the shortcut ‘Ctrl + H’ to access your search history on Microsoft Edge. 

History in Edge

3.  Click on the ellipsis (…) button on the top-right side of the pop-up to access more settings. 

4. Next, click on the Clear browsing data option. 

Clear browsing data in Edge

5. Then, select what you want to delete: Browsing history , Download history , Cookies and other site data , and Cached images and files .

6. Finally, click on the Clear Now button to delete all selected cache and history.

Clear DNS Cache in Safari on Mac

Clearing your history is pretty straightforward on Safari. 

1. After launching the browser, click on the Safari banner at the top-left corner of your screen. 

2. Click on Clear History .

Mac Clear History

3. Click on the drop-down menu next to the Clear text and select the time range. 

4. Finally, click on Clear History to wipe the slate clean. 

Mac Clear History Button

Alternatively, you could follow the steps below to clear your cache. 

1. Once you launch the Safari browser, click on the History tab at the top of your screen.

2. After the menu expands, click on Clear History . 

Safari Clear History

3. Select the time range and then hit the Clear History button. 

Clear DNS Cache in Mozilla Firefox

In Mozilla Firefox, you can erase your history, cache, and other files in the following manner:

1. After you open the browser, click on the hamburger menu at the top-right corner of the browser window. 

2. Once the menu expands, click on History . 

History in Firefox

3. Next, click on Clear recent history .

4. Now, select a time range at the top of your screen, select the items you want to erase, and click on OK .

Click Ok in Firefox

Alternatively, you could:

1. Go to Settings after expanding the hamburger menu. 

2. Next, click on the Privacy & Security tab on the left side of your screen. 

3. Scroll down to the Cookies and Site Data section and click on the Clear Data button. 

Privacy Security in Firefox

4. On the next screen, select Cookies and Site Data and Cached Web Content options and click on OK . Restart the browser when you are done. 

Clear DNS Cache in Opera

Opera may have lost some ground in the race for becoming the most popular browser on the internet, but it still has an abundance of nifty features. If you are an Opera user, here are the steps you could follow to delete history and cache. 

1. After you launch the Opera browser, click on the History button on the left-hand side panel. 

History in Opera

2. Click on the Clear Browsing Data button at the top-right corner of the window. 

Clear Browsing Data in Opera

3. Then, select the Time Range, check the Browsing History , Cookies and other site data , and Cached images and files options, and hit the Clear data button.

Clear Data in Opera

Alternatively, you could access the same options via Settings.

1. Open the Opera browser and click on the Settings option on the left-hand side tab. It’s located just under the History button. 

2. Go to the Privacy & Security tab. 

3. At the top, click on the Clear browsing data option.

Privacy Security in Opera

4. Select time frame, select Browsing History , Cookies and other site data , and Cached images and files options before clicking on the Clear data button. 

Final Words

The DNS cache is an integral part of everyday web browsing. Your operating system keeps track of the websites you frequent and populates the DNS cache with their addresses. It allows the browser to load the webpages faster, saving you precious seconds and even minutes.

However, if your computer falls prey to a network attack or a virus infiltrates it, the DNS cache can get dangerously polluted. In that case, the addresses in the DNS cache are messed up, landing you on potentially malicious sites. Unless you are careful, you could give away sensitive account information. 

So, if some of your websites look or feel funny, follow the steps mentioned above to flush your operating system’s DNS cache before cleaning out your browsers. A keen eye could go a long way in preventing digital fraud.

' src=

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

YouTube Channel

Subscribe to our YouTube channel for the video tutorial around latest Technology.

Latest Articles

Teams Cam Not Working

How to Fix Camera Not Working in Microsoft Teams on Mac

Emoji Shortcut Mac

How to Fix Emoji Keyboard Shortcut Not Working on Mac

Keyboard backlight

How to Fix MacBook Keyboard Backlight Not Working

Find Wi Fi Password on Windows 11

How to Find Wi-Fi Password on Windows 11

Finder Not Responding 1200x628

How to Fix Finder Not Responding on Mac

How to clear your DNS cache in 5 minutes

Turbo-charge web loading times and your privacy with just a few clicks

Man using laptop in office

Each time you type a new web address into your browser’s address bar, your device connects to a DNS Server to translate its simple human-readable name into a machine-readable IP address , so you can connect to your web server of choice.

Many modern devices and operating systems store the IP addresses of the sites you visit in a special DNS cache to help you access them faster in future. 

Problems occur when things start to go stale. Perhaps the website in question has updated its IP address or maybe they’ve added a new server to which you can connect even faster. This can cause web pages to load slowly, or sometimes not all. 

Bad actors like hackers will sometimes target your DNS cache. This is known as ‘DNS poisoning’ and is very dangerous : if, for instance, you typed in the website address of your bank, a hacker could redirect you instead to a copycat ‘ phishing ’ website. 

DNS settings 

Even if you’re not worried about slow web pages or being targeted by cybercriminals, you may want to update your DNS settings. Public DNS servers such as those offered by Google and Cloudflare are often much faster than those offered by your ISP, and they can filter out harmful links.

If you sign up with one of the best VPN services (and reliable free VPN providers), they will also supply their own DNS servers. This is because if you connect to a VPN but continue to use the DNS servers supplied by your ISP, anyone monitoring your connection can see which websites you’re visiting, as well as what services you’re using, such as Netflix. This is known as DNS leak . 

If you’re considering subscribing to a VPN or updating your DNS settings, you should always “flush” your DNS cache first to clear out any old web data. This is not only better for your privacy. It will stop pages from failing to load properly using the new DNS servers.

Clearing your DNS caches isn’t hard to do but to make sure your settings are updated, you need to do it on each device and browser you use.

How to clear your DNS cache 

There’s very little risk in clearing your DNS cache but as always when making any system-wide change to your system, make sure to save and close any open files, as well as run backups before you start.

If you’re using Microsoft Windows, clearing the DNS cache is very simple. Simply boot to the desktop, enter “CMD” into the search box to run the Command Line Utility and run:

ipconfig /flushdns

You’ll see a confirmation message to say this has been done.

If you’re running a Mac, it’s more complicated. In each case you’ll need to boot to your macOS desktop, open Spotlight and search for ‘Terminal’. But the commands you need to enter are slightly different depending on which version of macOS you’re running.

For versions of macOS12 (Sierra) and later run the command:

sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache

For OS X 10.10 (Yosemite) run:

sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder

For OSX Lion, Mountain Lion and Mavericks, run:

sudo killall -HUP mDNSResponder

If you don’t feel comfortable using the Terminal, MacKeeper also has a feature to clear the macOS DNS cache .

There are many different ‘flavors’ of Linux and it would take too long to provide instructions for how to clear your cache here. However if you’re using a recent version of Ubuntu or one of its variants like Linux, simply open the ‘Terminal’ app and type:

sudo resolvectl flush-caches 

For Red Hat Linux and it’s variants open Terminal and run:

service nscd restart

If you have an iPhone or iPad, the DNS cache clears itself each time the device restarts or is placed in “flight mode”. Enable flight mode or turn your iOS device off, wait 30 seconds, then reconnect.

Android devices like mobile phones and tablets don’t have a built-in way to clear the DNS cache but you can get round this by installing Chrome on your device, then following the instructions for clearing the cache below.

How to clear browser DNS cache

Just in case you were thinking this was too easy, some browsers also store their own cache to help with faster loading times. These can also become corrupted or be exploited, so make sure to clear them out at the same time you clear the main DNS cache on your computer or mobile device. 

Microsoft Edge

Open Microsoft Edge and click on the three-dot menu at the top right and choose ‘History’. Next choose ‘Clear Browsing Data’. A new window will open. Use the “Time Range” dropdown menu to select “All Time”. Make sure that the tickbox “Cookies and other site data” is checked, then click “Clear Now.”

With the Safari browser open, click Safari > Preferences. Next, click the ‘Advanced’ tab and check ‘Show Develop Menu’. Click the new ‘Develop’ option in the menu bar, then ‘Empty caches’.

Google Chrome

Open Chrome and type this into the address bar:

chrome://net-internals/#dns

This accesses Chrome settings. Just click the “Clear host cache” button to flush out your old DNS data. Opera

Like Google Chrome, the Opera browser is based on Chromium, so the steps you need to go through are very similar. Just open the browser and type this into the address bar:

opera://net-internals/#dns

As with Chrome, just click on “Clear host cache” to flush your old DNS settings. Firefox

Click the Firefox menu icon at the top right of your browser window, then go to “History > Clear Recent History”. Under the “Time range to clear” dropdown menu, choose “Everything,” then click OK. 

DNS clearance 

Clearing out your DNS cache is a great way to improve connection speeds and stay safe from hackers. It also makes it more likely if you’re updating your DNS settings that your devices and installed browsers will work right away.

If you’re still experiencing slow loading times after connecting to a VPN and using their DNS servers, see our guide How to speed up a VPN when you’re not already using one of the fastest VPNs . 

Are you a pro? Subscribe to our newsletter

Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!

Nate Drake is a tech journalist specializing in cybersecurity and retro tech. He broke out from his cubicle at Apple 6 years ago and now spends his days sipping Earl Grey tea & writing elegant copy.

The quest of a Ukraine VPN to keep people connected during a war

Private Internet Access brings back split tunneling on MacOS VPN

Quordle today – hints and answers for Wednesday, March 6 (game #772)

Most Popular

By Chiara Castro June 22, 2023

By Nate Drake June 21, 2023

By Nate Drake June 16, 2023

By Chiara Castro May 26, 2023

By Chiara Castro May 24, 2023

By Chiara Castro May 03, 2023

By Chiara Castro April 21, 2023

By Chiara Castro April 20, 2023

By Chiara Castro March 23, 2023

By Chiara Castro March 21, 2023

  • 2 UC Riverside researcher has found a way to potentially double the speed of computers without additional hardware
  • 3 Server builder Supermicro saw its value rise by 800% in 12 months thanks to AI
  • 4 Forget photo manipulation and art – generative AI’s real potential is helping us with things we don’t know and can’t see
  • 5 If the Galaxy Z Fold 6 Ultra is real it could finally change my mind about foldable phones
  • 2 Nvidia CEO predicts the death of coding — Jensen Huang says AI will do the work, so kids don't need to learn
  • 3 AI is going to change your phone – and your face. Here's how
  • 4 Did Qualcomm just launch the first true 'App Store' for AI? AI Hub comes with 75 models for free, but you will have to be a developer to take full advantage of it
  • 5 'Up to 1,000x faster': AI startup wants to make GPU training obsolete with an extraordinary piece of tech — meet the Tseltin machine which may come to a device near you sooner than you think

Clear the history, cache, and cookies from Safari on your iPhone, iPad, or iPod touch

Learn how to delete your history, cookies, and cache in Settings.

Delete history, cache, and cookies

Clear cookies and cache, but keep your history, delete a website from your history, block cookies, use content blockers.

Go to Settings > Safari.

Tap Clear History and Website Data.

ios-17-iphone-14-pro-settings-safari-clear-history-and-website-data

Clearing your history, cookies, and browsing data from Safari won't change your AutoFill information.

When there's no history or website data to clear, the button to clear it turns gray. The button might also be gray if you have web content restrictions set up under Content & Privacy Restrictions in Screen Time .

To visit sites without leaving a history, turn Private Browsing on .

Go to Settings > Safari > Advanced > Website Data.

Tap Remove All Website Data.

When there's no website data to clear, the button to clear it turns gray. The button might also be gray if you have web content restrictions set up under Content & Privacy Restrictions in Screen Time .

Open the Safari app.

Bookmarks button

Tap the Edit button, then select the website or websites that you want to delete from your history.

Tap the Delete button.

A cookie is a piece of data that a site puts on your device so that site can remember you when you visit again.

To block cookies:

Go to Settings > Safari > Advanced.

Turn on Block All Cookies.

ios-17-iphone-14-pro-settings-safari-block-all-cookies

If you block cookies, some web pages might not work. Here are some examples:

You will likely not be able to sign in to a site even when using your correct username and password.

You might see a message that cookies are required or that your browser's cookies are off.

Some features on a site might not work.

Content blockers are third-party apps and extensions that let Safari block cookies, images, resources, pop-ups, and other content.

To get a content blocker:

Download a content blocking app from the App Store.

Tap Settings > Safari > Extensions.

Tap to turn on a listed content blocker.

You can use more than one content blocker. If you need help, contact the app developer .

Information about products not manufactured by Apple, or independent websites not controlled or tested by Apple, is provided without recommendation or endorsement. Apple assumes no responsibility with regard to the selection, performance, or use of third-party websites or products. Apple makes no representations regarding third-party website accuracy or reliability. Contact the vendor for additional information.

clear safari dns cache

Related topics

clear safari dns cache

Explore Apple Support Community

Find what’s been asked and answered by Apple customers.

clear safari dns cache

Contact Apple Support

Need more help? Save time by starting your support request online and we'll connect you to an expert.

  • Clear Safari cache on Mac
  • Clear Safari cache on iPhone or iPad
  • How to save passwords when clearing your cache

How to clear your Safari browser cache on a Mac, iPhone, or iPad

  • You can clear your cache on Safari in just a few steps on a Mac, iPhone, or iPad.
  • Clearing your cache, as well as history and cookies, can help resolve your device's performance issues.
  • Clearing your cookies will clear your passwords as well, unless you save them with keychain.

A cache is a store of data. When you visit a website on your Mac, iPhone, or iPad, the Safari browser keeps a snapshot of the pages you view.

If you go back to that website, Safari loads the cached page in an instant, instead of taking the time to retrieve the page from the internet again.

But an overloaded cache can take up storage space and cause your device to run inefficiently — and it could use a periodic clearing.

Here's what you need to know to clear your cache on Safari, as well as your cookies and browsing history.

How to clear Safari cache on Mac

You can either clear just your cache or your cache, history, and cookies. 

Clear your cache

1. Click on the Safari tab at the top left of your screen and choose Preferences from the dropdown menu.

2.  Click the Advanced tab of the menu that pops up.

3.  At the end of the tab, select the Show Develop menu in menu bar box and close the Preferences menu.

4. Click the Develop tab from the Safari menu at the top of the page.

5. Click Empty Caches from the dropdown menu.

Clear your cache, history, and cookies

You may also want to clear your browsing history and cookies in addition to emptying your cache. Here's how to do that.

1. Choose the History tab at the top of your screen.

2. At the very bottom of the dropdown menu, choose Clear History.

3.  A box pops up with a choice to clear the last hour, today, today and yesterday, or all history. Choose your time frame and click the Clear History button.  

Once you clear the history, it will also clear the cache and cookies associated with that time period.

How to clear Safari cache on iPhone or iPad

To clear your cache and browsing history:

1. Open the Settings app.

2. Tap Safari .

3. Tap Clear History and Website Data .

4. On the screen that pops up, choose Clear History and Data .

To clear your cache but not your browsing history:

3. Tap Advanced .

4. Tap Website Data .

5. Choose Remove All Website Data .

What happens to saved passwords when you clear your cache

When you clear your cache, history, and cookies, you may discover that Safari has logged you out of your favorite websites.

While clearing Safari's cache alone will not delete your passwords, clearing your history and cookies can. That's because when you empty your cookies, you will lose their password data saved in Safari as well. And keep in mind that clearing your history also clears its associated cookies.

Luckily, Apple has a solution to this problem. If you use iCloud, check your iCloud settings on your phone or computer.

Make sure that you've checked the box for Safari. As long as this box is checked, any passwords you save through your browser will stay safe in your keychain .

clear safari dns cache

  • Main content
  • Apple Watch
  • Accessories
  • Digital Magazine – Subscribe
  • Digital Magazine – Log In
  • Smart Answers
  • M3 MacBook Air
  • New iPad Air
  • iPad mini 7
  • Next Mac Pro
  • Best Mac antivirus
  • Best Mac VPN

When you purchase through links in our articles, we may earn a small commission. This doesn't affect our editorial independence .

How to clear Safari’s cache and cookies on Mac

clear safari dns cache

There are a handful of situations when clearing Safari’s cookies or cache–one of the places where Safari stores website data to avoid having to download it afresh each time you access a site–can help improve your browsing experience.

The first is when websites simply stop working when you access them on Safari. Perhaps Facebook stops updating with new posts, for example, or the images on a site don’t appear as they should. If this happens, it’s likely the cache has become corrupted.

Alternatively, if you find that personal info automatically completed on sites isn’t correct, deleting cookies can help. These are small files that sites use to save data about you and what you do on the site.

Even if none of these problems affect you, periodically cleaning browser data can help protect your privacy from snoops who want to discover what you’ve been up to online. In this article, therefore, we explain how to clear Safari’s cache and cookies on Mac.

We also have an article that explains How to clear cache on a Mac.

How to clear Safari cookies and cache for websites

Cleaning cookies and the cache data for individual sites can be done via Safari’s Settings/Preferences.

  • Open Safari
  • Click on Safari in the menu at the top of the screen.
  • Click on Settings or Preferences (depending on the version of macOS you are running).
  • Go to the Privacy tab.
  • Click on Manage Website Data…
  • Choose Remove All or select websites individually to remove.

After the data is loaded you’ll probably see a long list of websites. You can choose to Remove All or just select individual websites you want to remove from this list. If you want to select a number of different sites you can click on one and then press and hold the Command key to select a second, third or fourth and so on. We recommend that you don’t select hundreds this way – it’s better to delete in batches just in case you have to start over.

If you would prefer to select all and then deselect the ones you want to keep you can do so. Use Command + A to select all, then press and hold Command while clicking on any website you are happy to keep in this list. Just click Remove afterwards, not Done, as that will just undo all your hard work.

There’s a search field you can use to track down individual sites.

Bear in mind that deleting cookies might remove autocompleted login usernames and passwords for sites, and will almost certainly log you out of that site if you’ve configured it to automatically log in each time you visit.

How to clear Safari's cache and history on Mac: Privacy

How to clear Safari cache

The hidden Safari Developer menu can be used to clear just the cache, leaving cookies and the browser history in place. This is a very useful diagnostic step to take before removing those two items if a website behaves badly.

If you just want to clear all your cache you can do so by following these steps:

  • Open Safari.
  • Click on Safari in menu bar at top of screen.
  • Click on Settings/Preferences (depending on the version of macOS you are running).
  • Click on the Advanced tab.
  • Check the box beside Show Develop Menu in Menu Bar.
  • Now there will be a new Develop tab in the menu at the top of your screen. Click on this.
  • Click on Empty Caches.

Alternatively click on Option/Alt + Command + E.

Close any open Safari windows and select Empty Caches on the Develop menu. Then click File > New Window to start Safari with a clean cache.

How to clear Safari's cache and history on Mac: Empty caches

How to remove autocomplete data from AutoFill

Safari’s AutoFill tool can fill in username and password details on websites as well as credit card details and other elements like your address and email details.

This can be really useful, but it can also be annoying if the data it fills in is incorrect or out of context. It’s also a problem when AutoFill helpfully enters old or incorrect passwords or emails and addresses.

You can change this data, or delete it by following these steps:

  • Click on Safari.
  • Click on Settings/Preferences.
  • Choose the AutoFill tab.
  • Here you can edit contact information, usernames and passwords, credit cards and other data. Click on Edit beside the category you want access to.
  • You’ll need to enter your password or use Touch ID to gain access.

Delete incorrect data: If you are finding that Safari is autofilling incorrect data about you–your address, for example–click Edit beside Using information from my contacts. This will open up your Contacts app. Your card will be at the top or under My Card. You can add and amend data about you here.

How to clear Safari's cache and history on Mac: Autofill

Delete incorrect passwords and site logins: If you wanted to delete incorrect passwords, for example, you can just click on the Passwords tab. If you know which password you want to remove search for the website or service and then find the older password option (if there is more than one) and select it and then click on the – below the column to remove it. You can then select Delete Password. If that means there is no password saved for that website, you can then recreate the entry for the site by clicking the Add button. You’ll first need to provide the URL of the site (that is, something like https://facebook.com ), and then type the username and password alongside (hit the Tab key to move from field to field).

See: How to autofill passwords, bank cards, names and addresses for more.

How to clear Safari's cache and history on Mac: Site logins

Delete logins and passwords system-wide

Pruning site logins can also be done via the Keychain Access app, which you’ll find in the Utilities folder of the Applications list in Finder, although you should be very careful using this app because it pretty much controls the entire security operation of your Mac! However, by removing errant username and password entries here you’ll stop virtually all of your Mac apps using them, and not just Safari.

Just type the name of the site into the Search field, and look in the list of results for entries of the kind Web Form Password. Right-click the entry and select Delete.

Changing password keychain Mac

If you want to delete your Chrome or Firefox cache, cookies or browsing history read: How to delete your Mac browsing history . For alternative web browsers take a look at: Best web browser for Mac.

How To Clear DNS Cache on Windows, Chrome, Firefox and Safari With 5 Easy Steps

  • February 27, 2024

The Domain Name System or commonly known as DNS plays an important role in browsing the internet. It is a part of the internet’s infrastructure that translates domain names into IP addresses. In simple terms, DNS serves as a phonebook for the internet. However, with time, a DNS cache builds up which may cause issues like slow page loading or “server not found” errors while browsing.

Therefore, it is necessary to clear this cache from time to time for proper functioning of your browser. To ease out your work, here is the complete guide on how to clear DNS cache on Windows, Chrome, Firefox and Safari.

Table of Contents

Clearing  DNS Cache on Windows 

Microsoft Windows is the most widely used operating system for professional as well as for personal use and has many versions. But irrespective of the Windows version, the process of clearing DNS cache is the same for all. Let’s see how we can flush the cache on Microsoft Windows .

Step 1: Click the Windows Start menu, type “Command Prompt” into the search bar, and click it.

clear safari dns cache

Step 2: Choose “Run as administrator” at this point. It will open the “Administrator: Command Prompt” window.

Step 3: Type “ipconfig/flushdns” into the command bar and hit the Enter key.

Step 4: A confirmation message stating that the DNS Cache has been cleared will be shown to you when the command has been successfully executed.

Step 5: To make sure the DNS cache has been fully cleared, restart your computer.

Easy Steps To Clear Dns Cache On Windows

Clearing DNS Cache on Chrome

The most popular web browser across the globe, Google Chrome, maintains its own DNS cache. Here are the steps on how to clear its DNS cache.

Step 1: Select the 3-dot menu icon in the top-right and select “Settings”.

Step 2: Click on “Privacy and Security” from the left sidebar and select the “Clear browsing data” tab.

Step 3: A window will appear showing the list of items which can be cleared. Change the time range to “All time” and check the boxes for the items to be flushed(as shown). 

Step 4: Click on “ Clear data” to remove all DNS cache from Google Chrome .

Step 5: Restart your Chrome browser for the changes to apply.

Easy Steps To Clear Dns Cache On  Chrome

Also Read  ➤ ➤   A Guide to Delta Exchange Futures Trading

Clearing DNS Cache on Firefox

Known for its enhanced security features, Mozilla Firefox also maintains its own DNS cache. You can follow these simple steps to clear it.

Step 1: Go to the three horizontal lines icon in the top right corner of the Firefox window. Click on it and select “Settings”.

Step 2: Select “Privacy & Security” and scroll down to “Cookies and Site Data”.

Step 3: Click on the “Clear Data” button. A small window will appear (as shown).

Step 4: Check the box besides “ Cached Web Content” and click on “Clear”. (You can also check the box for “Cookies and Site Data” if you want to clear that data too.)

Step 5: Restart the Firefox browser for the changes to apply.

clear safari dns cache

Clearing DNS Cache on Safari

Safari is the default web browser on macOS and iOS thereby greetings its own DNS cache. Follow the given steps to flush it.

Step 1: Open the Safari browser and select “Safari” in the top menu.

Step 2: Click on “Preferences” and go to the “Advanced” tab.

Step 3: Next we have to enable the Develop menu. For this, check “Show Develop menu in menu bar”.

Step 4: Click on “Develop” in the menu bar and select “Empty Caches”. 

Step 5: Close and reopen Safari to ensure that the DNS is cleared.

clear safari dns cache

DNS cache is necessary for quick domain resolves, but troublesome browsing might result from an oversized cache that contains out-of-date data. In order to resolve issues like slowly loading websites, connection difficulties, and being redirected to incorrect IP addresses , it is imperative to regularly clear DNS cache.

You can easily remove the DNS cache on your Windows or MacBook device by following these 5 easy steps. But remember that while your browser rebuilds its cache with new DNS information, clearing the DNS cache may momentarily slow down your surfing experience. Still, it’s a tiny price to pay for fixing annoying internet problems.

  • Bitcoin and ETH Crash on 16 November, Dragging Other Cryptocurrencies with them
  • FTX and Genesis Global Reaches Agreement To Settle Bankruptcy Dispute
  • Bukele Announces El Salvador’s Successful Bitcoin Investment
  • <strong>AAVE Price Analysis September 2022</strong>

Swati Chauhan

Swati Chauhan

Get daily updates.

Crypto News, NFTs and Market Updates

Related Posts

5 Best Family History Software

5 Best Family Tree Software

clear safari dns cache

ResumeCoach Review – Is it the Best Resume Maker?

Top 10 Best IT Asset Management Software

Top 10 Best IT Asset Management Software

What Is a Virtual Phone Number & How to Get One?

What Is a Virtual Phone Number & How to Get One?

Trending now.

clear safari dns cache

Claim Your Free Trading Guide

Sign up for newsletter below and get your free crypto trading guide.

clear safari dns cache

  • Coinmonks NFTs
  • NEWS PODCAST
  • SWAP CRYPTO
  • CRYPTO PRODUCTS

Crypto Products

Can’t find what you’re looking for? Type below and hit enter!

logo

Knowledgebase

Search articles.

  • DNS and Nameservers
  • Hosted Email
  • Making Email Work For You
  • Troubleshooting
  • StackCP Hosted Email
  • What is cPanel?
  • Tools and Features
  • Making use of Your cPanel Account
  • File Management
  • Publishing your Website
  • Website Optimisation
  • Working with a Database
  • PHP (Applications and Scripts)
  • Migration Center
  • Understanding WordPress
  • Using Website Builder
  • What is a StarterSite
  • Using StarterSite
  • Explore Your Account
  • Managing Your Account and Services
  • Account Troubleshooting
  • Cloud Reseller Hosting

How To Clear The DNS Cache

Clear your local dns cache [ windows / mac / linux ], how to flush dns in windows, how to flush dns in mac osx, how to flush dns in linux.

When you connect to a website, it will cache the Domain Name Server [DNS] settings to your machine. Sometimes when you make changes to your DNS, this prevents you from visiting the site at the new location for quite some time until that local record expires which can be 3-48 hours. Please note that your ISP can also cache settings, so this will only be effective if the ISP has updated their information as well.

In Windows, use "ipconfig /flushdns" to flush the DNS cache. Open the command prompt via  Start >> Run >> cmd.exe  and type the following:

C:\> ipconfig /flushdns

You should receive:

Windows IP Configuration
Successfully flushed the DNS Resolver Cache.

The above command will completely flush the DNS, deleting any incorrect entries too. You can also use the command ipconfig /displaydns to view the DNS resolver cache currently on your machine.

In Mac OSX Leopard, you can use the command "dscacheutil -flushcache" to flush the DNS cache from Terminal:

bash-2.05a$ dscacheutil -flushcache

In Mac OSX versions 10.5.1 and before, the command lookupd -flushcache performed the same task:

bash-2.05a$ lookupd -flushcache

Terminal is found in your Applications under Utilities.

In Linux, the nscd daemon manages the DNS cache. To flush the DNS cache, restart the nscd daemon.

To restart the nscd daemon, use the command ` /etc/init.d/nscd restart `.

Related Articles

Can’t find what you need.

No worries, Our experts are here to help.

Guru99

Skyl DNS-cache til Windows, Chrome, Firefoxog Safari

Lawrence Williams

Der kan være problemer med din internet-browsing-oplevelse primært på grund af DNS-cachehukommelse. At tømme din DNS-cache er en gennemprøvet måde at løse problemer med langsomme browsing og forbedre din hjemmesides surfingydelse.

DNS-cachehukommelse gemmer din browserhistorik. Den gemmer alle de IP-adresser, som din enhed har søgt efter eller brugt.

Hvad er formålet med at rydde DNS-cachen?

For at opsummere, her er de væsentlige fordele ved at skylle DNS-flashhukommelsen:

  • Løs DNS-relaterede problemer

Datasikkerhed

Opdater dns-oplysninger, løs problemer med webstedsindlæsning, eliminering af dårlige forbindelser, forbedre netværkets ydeevne.

Lad os kort forklare disse punkter.

Løst DNS-relaterede problemer

Over tid akkumulerer DNS-cache-hukommelsen tidligere restfiler fra gennemsøgte websteder. Disse DNS-poster kan blive beskadiget, slowing nede din netværksforbindelse.

Du skal tømme DNS-cachen regelmæssigt, hvis mange mennesker får adgang til din computer. Denne tilgang er nødvendig for at sikre datasikkerhed. Medmindre du rydder cachen regelmæssigt, vil de, der får adgang til din enhed, finde ud af det websted, andre bruger, ved at besøge DNS-cachehukommelsen.

Åbn kommandopromptvinduet og indtast ipconfig /displaydns . Denne kode viser adresserne på hvert websted, du har besøgt.

Code to Display Addresses of Site

Der kan også være tilfælde, hvor denne cachehukommelse gemmer forkerte oplysninger eller en IP-adresse. Hvis sådanne oplysninger eller en upassende IP-adresse kolliderer med andre specifikke adresser, kan det kompromittere din internetbrowsers ydeevne.

Du har muligvis brug for hjælp til at åbne en hjemmeside. Ofte hæmmer gamle webstedsrester et websteds ydeevne og forhindrer, at bestemte websteder indlæses. For at løse problemer med webstedsindlæsning skal du tømme DNS-hukommelsescachen. Denne metode vil slette alle de tidligere webstedsrester, der er tilbage i cachehukommelsen.

Type ipconfig /flushdns inde i kommandoprompten for at rydde webstedsresterne fra DNS-cachen.

Code to Clear The Website Residues

DNS-hukommelsen kan have nogle forkerte og upassende indtastninger. Hvis du tømmer DNS-cachehukommelsen, slettes disse upassende poster, hvilket eliminerer de dårlige forbindelser og forbedrer netværkets sikkerhed.

Når den efterlades uden opsyn i lang tid, vil DNS-cache-hukommelsen blive fyldt med IP-adresser fra tidligere websteder, som du har gennemset. Som et resultat vil dit netværks ydeevne blive kompromitteret, slowing ned i flere tilfælde. Tømning af DNS-cachen vil slette disse gamle IP-adresser og give hukommelsen en frisk start til at begynde fra bunden. Der vil være en betydelig forbedring i din overordnede netværksydelse og internetforbindelsesproblemer.

Hvorfor DNS-cachen eksisterer

DNS-cache findes for at udjævne internetbrowsingsprocessen. En veladministreret DNS-cache lover en strømlinet søgning efter IP-adresser på specifikke domænenavne. Hvis det administreres korrekt, kan det resultere i:

  • Hurtigere DNS-opløsning
  • Reduceret netværkstrafik
  • Bedre belastningsfordeling
  • Offline adgang til hjemmesider

Vi vil diskutere, hvordan du tømmer/rydder dit systems DNS-skyllehukommelse her. Uanset hvilket operativsystem du bruger, er der måder at styre skylleprocessen på.

Metode 1: Sådan tømmes DNS-cache på Windows

Sådan rydder du dns-cache på windows via kommandoprompt.

Her er trinene til at tømme DNS-cache ved hjælp af Windows kommandoprompt.

Trin 1) Klik på START fra din Windows skærmbilledet.

Trin 2) Skriv CMD i søgefeltet.

Trin 3) Sørg for at køre Windows kommandoprompt med administratorrettigheder.

Trin 4) For at inkludere administratorrettigheder skal du højreklikke på kommandoprompten.

Trin 5) Et skiftevindue åbnes. Fra det vindue skal du vælge KØR SOM ADMINISTRATOR.

Trin 6) Når du har åbnet kommandoprompten, skal du bare skrive ipconfig /flushdns og tryk på ENTER-tasten*.

Trin 7) Du vil bemærke meddelelsen "DNS Resolver Cache blev tømt med succes".

*Bemærk venligst: Du skal inkludere et mellemrum efter ipconfig og fortsæt derefter med /flushdns at tømme DNS Windows 10.

Code to Flush DNS Windows 10

Sådan skylles DNS-cache igennem Windows PowerShell

Trin 1) Vælg indstillingen Start, og skriv derefter på det tomme felt PowerShell

Trin 2) En liste box vil åbne, og du vil bemærke Windows PowerShell opført øverst.

Trin 3) Du kan enten double-klik på det eller se på højre side af panelet og klik på åben.

Trin 4) Når PowerShell åbner, skal du skrive Clear-DnsClientCache og tryk ENTER.

Flush DNS Cache through Windows PowerShell

Trin 5) Når du har trykket på Enter, vil DNS-cachen blive slettet. Der vil dog ikke blive vist nogen sletningsbekræftelse på skærmen.

Trin 6) Hvis du vil se slettebekræftelsen, skal du bare skrive ipconfig /flushdns i PowerShell-vinduet.

Flush DNS Cache through Windows PowerShell

Metode 2: Sådan rydder du DNS-cache på Mac

Rydning af dns-cache via terminal, processen kort fortalt:.

Trin 1) Mac: > Finder > Programmer. [Gå ind]

Trin 2) Programmer>Hjælpeprogrammer>Launchpad>Terminal. [Gå ind]

Trin 3) Terminal> [Gå ind]

Trin 4) . [Gå ind]

Trin 5) # Folloenwing meddelelse vises: #

Processen i detaljer:

Når du vil tømme DNS Mac, skal du først have adgang til terminalen.

Terminalen er en kommandolinjegrænseflade, der leveres forudinstalleret i Mac OS. Ligesom kommandopromptkonsollen i Windows, Terminal er et lignende program i Mac-operativsystemet. Processen er enkel.

Du kan åbne Terminal-appen ved at starte Spotlight-søgningen. Øverst på skærmen skal du bevæge dig mod højre side, og du vil bemærke et ikon i forstørrelsesglasstil.

Clear DNS Cache on Mac

Klik inde i søgefeltet for at skrive "terminal.app" eller "terminal", og tryk på Enter. Du vil bemærke, at muligheden for at åbne terminalen vises. Klik på indstillingen, og terminalen åbnes:

Clear DNS Cache on Mac

Når terminalen åbner, skal du indtaste en bestemt kode i vinduet.

Inden du indtaster koden, skal du lære hvilken version af MacOS du bruger.

Hvordan finder jeg den version af Mac, der kører på din Apple-enhed?

APPLE-ikonet er placeret øverst til venstre på skærmen. Klik på ikonet for at åbne menuen. Derfra skal du klikke på OM DENNE MAC.

Skærmen viser Mac-versionsnavnet og versionsnummeret. Se nedenstående skærmbillede:

Version of Mac Running on your Apple device

Nedenfor er en liste over kommandostrenge til de seneste 5 versioner af Mac OS:

Når du har indtastet kommandostrengen i henhold til den version af Mac, du bruger, vil vinduet vise et mellemrum til at indtaste adgangskoden til dit system. Adgangskoden forbliver skjult, selv når du skriver. Indtast adgangskoden omhyggeligt for at undgå eventuelle tastefejl.

Når du har indtastet adgangskoden, skal du trykke på ENTER-tasten. Mac-rydde DNS-cache-processen viser aldrig nogen bekræftelsesmeddelelse efter afslutning. I stedet vil en terminalprompt blive vist.

Rydder DNS-cache igennem macOS Mojave og later

Processen ligner det, vi har diskuteret i ovenstående afsnit. Blandt de forskellige versioner af Mac OS, der er udgivet gennem årene, er 10.14-versionen kendt som macOS Mojave.

Når det er tid til at tømme din DNS-cache, skal Mojave-brugere følge disse trin:

Trin 1) Start> Programmer> Hjælpeprogrammer> Terminal.

Denne prompt åbner terminalvinduet. Du kan også trykke på kommando- og mellemrumstasterne fra tastaturet sammen.

Trin 2) I terminalvinduet skal du bare skrive sudo killall -HUP mDNSResponder

Trin 3) Når du har indtastet kommandostrengen, skal du trykke på RETURN-tasten.

Trin 4) Skærmen vil vise dig en prompt, der beder om ADMIN ADMINISTRATION.

Trin 5) Indtast ADMIN ADMINISTRATION PASSWORD og tryk på RETURN-tasten.

DNS-cachen ryddes fra din macOS Mojave system. Der vil dog ikke blive vist nogen meddelelse, der indikerer, at skylningen er ryddet.

Metode 3: Sådan tømmes DNS-cachen på Chrome

Næsten alle kender Chrome, den populære browser fra Google. Denne browser gemmer sin egen DNS-cache. Forveksle det aldrig med DNS-cachen, der er gemt i dit system OS.

Rydning af DNS-cachen på Chrome fra Windows OS

For at rydde din Google Chrome-browsers DNS-cache, her er folloenwing trin:

Trin 1) Start Google Chrome fra dit operativsystem. Du har muligvis et Chrome-ikon på skrivebordet. Eller gå til starten og skriv CHROME. Klik på ÅBN i det højre skiftevindue.

Clearing DNS Cache on Chrome from Windows

Trin 2) Når du har åbnet Chrome-browseren, skal du indtaste following Kommando på adresselinjen i browseren: chrome://net-internals/#dns

Clearing DNS Cache on Chrome from Windows

Trin 3) Klik på fanen RYD VÆRTCACHE.

Trin 4) Når der er klikket på det, vil det rydde DNS-cachehukommelsen fra Chrome-browseren.

Rydning af DNS-cachen på Chrome fra macOS

Processen er ret enkel. Her er trinene:

Trin 1) Du skal installere Google Chrome på din macOS til flush chrome dns cache.

Trin 2) Start browseren fra DOCK- eller APPLICATION-mappen efter installationen.

Clearing the DNS Cache on Chrome from macOS

Trin 3) I Chrome-browserens adresselinje skal du skrive: chrome://net-internals/#dns

Trin 4) Klik på knappen RYD VÆRTCACHE.

Trin 5) Selvom det ikke viser nogen meddelelse, vil Chromes DNS-cache blive renset.

Metode 4: Sådan tømmes DNS-cache på Firefox

Firefox er en populær browser fra Mozilla. Synes godt om andre browsere , gemmer den browsing-rester og site-scripts i cachehukommelsen. Rydder denne DNS-cache til Firefox er nødvendigt for at forbedre den overordnede browseroplevelse, som f.eks. websideindlæsningshastighed, browsersikkerhed osv.

Rydning af DNS-cache til Firefox fra Windows OS

Her er et trick til at rydde alt fra Firefox browser – cache, cookies, browserhistorik, alt sammen med et enkelt klik.

Trin 1) Firefox browser> Menu > Menupanel.

Trin 2) Menupanel> Historik> Ryd seneste historik.

Clearing DNS Cache on Firefox from Windows OS

Trin 3) Fra siden kan du vælge TIDSOMRÅDE for historikken, der skal renses. Åbn rullemenuen, og vælg det tidsinterval, som du vil tømme historikken for.

Trin 4) Du kan også vælge, hvad der skal slettes, og hvad der ikke skal. Du kan fravælge boxes for at beholde nogle af de tilgængelige muligheder.

Trin 5) Når valgene er udført, skal du klikke på fanen OK. De elementer, du har valgt, vil blive slettet fra historikken, og vinduet afsluttes.

Skyl DNS-cache til Firefox ved hjælp af Clear Data

Her er trinene til kun at rydde DNS-cachen fra Firefox:

Trin 1) Firefox> Menu > Indstillinger.

Trin 2) Indstillinger> Privatliv og sikkerhed.

Trin 3) Privatliv og sikkerhed> Cookies og webstedsdata.

Trin 4) Cookies og webstedsdata> Ryd data.

Flush DNS Cache on Firefox using Clear Data

Trin 5) Da det kun handler om at fjerne DNS-cachen, skal du tjekke det CACHEDDE WEBINDHOLD box.

Trin 6) Klik på fanen RYD. DNS-cachen vil blive tømt fra browseren.

Trin 7) Du kan nu lukke siden. Ændringerne vil automatisk finde sted.

Rydning af DNS-cache til Firefox fra macOS

Firefox vil kun køre videre macOS version 10.12 og højere.

Trin 1) Du kan åbne Firefox fra docken eller applikationsmappen.

Trin 2) Åbn Menu> Præferencer> Privatliv> Sikkerhed.

Trin 3) Et skiftevindue åbnes, når du klikker på sikkerhed.

Trin 4) Tjek box ved siden af ​​CACHET WEBINDHOLD.

Trin 5) Tryk på RYD NU.

DNS-cachen skylles ud af din Firefox browser in macOS.

Metode 5: Sådan tømmes Ryd DNS-cache på Safari

Safari, standard webbrowser for macOS, har en anden måde at rydde DNS-cachen på i Safari. At bestemme, hvor DNS-cache-rydningsindstillingen er, er udfordrende uden knowing indstillingerne.

Her er trinene til at finde og rydde DNS-cachen i Safari:

Trin 1) Safari> Menulinje.

Trin 2) Menulinje > Safari > Indstillinger.

Trin 3) Klik på Indstillinger for at åbne et vindue. Se billedet nedenfor:

Flush Clear DNS Cache on Safari

Trin 4) Tjek box ved siden af ​​VIS UDVIKLINGSMENU I MENUBAREN.

Trin 5) Nu kan du forlade vinduet.

Trin 6) Menulinje> Udvikl.

Trin 7) Når du har klikket på Udvikl-sektionen, åbnes et dropdown-vindue som dette:

Flush Clear DNS Cache on Safari

Trin 8) Du skal rulle ned til indstillingen, der læser Tomme caches og klikke på den.

Trin 9) DNS-cachen slettes fra din Safari-browser.

Ulemper ved korrupt DNS-cache

DNS-cachen kan føre til nogle alvorlige fejlfinding, hvis den bliver ødelagt.

  • Forkerte omdirigeringer : DNS-cacheforgiftning kan forårsage forkerte omdirigeringer for et websted. Din hjemmeside kan kontakte den forkerte IP-adresse , hvilket resulterer i, at links åbner nogle upassende websider.
  • Forringer browserens ydeevne : Det er nødvendigt at slette de forældede oplysninger, der er gemt i cachehukommelsen, for at forbedre browserens ydeevne. Tilstedeværelsen af ​​forældede oplysninger og korrupte restfiler kan forsinke browserens generelle ydeevne og øge indlæsningstiden for websider.
  • Forbindelsesproblemer : Gennemsyn af skadelige eller ubeskyttede websteder kan resultere i fejl, der ødelægger DNS-cachen. Sådanne fejl forhindrer ofte websteder i at åbne eller indlæse.
  • Svært ved at løse domænenavne : DNS-fejl sker, når domænenavnet ikke kan forbindes med IP-adressen. Du vil se en besked, der lyder eller

Start kommandoprompten fra Windows OS med administratorrettigheder, skriv ipconfig /flushdns , og tryk på ENTER.

Hvis du bruger en MacOS enhed, åbn Terminal og skriv som flush DNS-kommandoen. Når du har indtastet kommandoen, skal du trykke på Enter. Skærmen vil bede om administratoradgangskoden. Indtast adgangskoden, og tryk på Enter.

Der er ingen hård og hurtig regel for, hvor ofte du renser din DNS-cache. At skylle DNS-cachen en gang om et par uger sikrer bedre browserydeevne.

DNS-cachen tager omkring 15-20 minutter at blive fuldstændig renset.

Det er vigtigt at rense DNS-cachehukommelsen, da det forbedrer dit systems ydeevne. Hvis du forlader DNS-cachehukommelsen urenset for længe, ​​kan det føre til, at restfilerne i cachen ødelægges. Sådanne filer kan være sårbare og resultere i at forårsage sikkerhedsproblemer og hyppige browserfejl. Det er derfor, du skal tømme din DNS-hukommelse af og til for at forhindre browsing-forsinkelser og andre relaterede fejlfinding.

Rydning af cache-filer ved hjælp af den passende DNS-flush-kommando ind forskellige operativsystemer og browsere er simpelt nok. Bare følg de ovennævnte procedurer for at tømme DNS-cachen for en bedre ydeevne.

  • IP-adresseklasser
  • Routing Protocol Types: Statisk, Dynamisk, IP, CISCO
  • Adresseopløsningsprotokol: Hvad er ARP-header i netværk
  • VLAN Trunking Protocol: Hvad er VTP i netværk og fordele
  • STP – Spanning Tree Protocol forklaret
  • Hvad er IP-routing? Typer, routingtabel, protokoller, kommandoer
  • Layer 2 Switch vs Layer 3 Switch
  • Undernet: Hvad er undernetmaske?

XDA Developers

How to clear the cache on Windows 11

Quick links, clear cache using the windows 11 settings app, automatically remove temporary files, clear cache using disk cleanup, clear individual app files, how to clear the microsoft store cache on windows 11, how to clear (flush) the dns cache on windows 11, bonus: clear your location history.

Over time, computers can accumulate a lot of files due to regular usage, and very often, you no longer need them. As these files pile up, they can take up a significant amount of space on your drive, and you may find that you can no longer save new files. A lot of these files are what you'd call a "cache," which are generally files that exist to speed up loading times in certain circumstances, though there are other types of temporary files your PC can create over time. If you need to free up some space on your Windows 11 PC, clearing this cache and other temporary files is a good start. Thankfully, it's a fairly straightforward process, and there are two main ways to do it.

Windows 11: Everything you need to know

The first and most prominent way to delete temporary cache files from your PC is to use the Settings app, which has gained plenty of storage management features over the years. The process is fairly simple, though you'll want to pay attention to some parts of the process as we go.

  • Open the Settings app (from the Start menu or by using Search, for example).
  • From the System section (which opens by default), choose Storage .
  • You'll see a breakdown of your storage usage. Click Temporary files .

Selecting the Downloads option will delete the entire contents of your Downloads folder, which is the default storage for nearly all the files you download. We recommend deleting these files manually on a case-by-case basis instead. Additionally, selecting the Recycle Bin option will make it impossible to recover files you've previously deleted.

  • Click Remove files at the top of the page to delete the temporary files you selected.

How to free up space on your PC after upgrading to Windows 11

Windows 11 also includes a feature called Storage Sense, which can automatically delete some of these temporary files. It'll delete temporary Windows files to free up space, but there are a few configuration options you can change to make it work better for your needs. Here's how:

  • Open the Settings app.
  • From the System section, choose Storage .
  • Check the Storage Sense option. It may be on by default, or you can enable it by clicking the toggle on the right to change it to On .
  • Click Storage Sense to change how the feature works.
  • Automatic User content cleanup: This is the core feature of Storage Sense itself, and if you enabled it on the previous page, it will be enabled here (and vice versa).
  • Configure cleanup schedules: This option changes how frequently Storage Sense will clean your files automatically. You can change how often Storage Sense runs (by default, it will run only when you have low free disk space) and how long it should wait before deleting files in your Recycle Bin (the default is 30 days) or Downloads folder (by default, these files aren't deleted automatically).
  • Locally available cloud content: This option allows you to automatically delete local copies of files that you've also stored on OneDrive. This only applies to files in your OneDrive folder, so if you've copied them to a different location on your PC; they won't be affected. By default, locally available OneDrive files are deleted if they haven't been opened in 30 days.
  • You can also run Storage Sense by clicking Run Storage Sense now at the end of the page if you don't want to wait for the next automatic run.

If you prefer doing things the classic way, it's worth noting that a lot of the capabilities of the Settings app when it comes to cleaning temporary files actually come from Disk Cleanup. This is a feature from the classic Control panel, and it's still available alongside the new Settings app.

  • Open the Start menu and type Disk cleanup . Select the first option in the search results.
  • To delete additional files, click Clean up system files . You'll need administrator permissions for this.
  • Select all the boxes of files you want to delete. In this case, you don't have to worry about deleting the Downloads folder since that capability isn't available here.
  • Click OK to delete the files you selected.

That's about all there is to this method, so it's just as easy as the method above.

Another useful feature in Windows 11 is the ability to reset apps, deleting all your personal data and cache related to them. This can be very helpful if you're having trouble with some apps crashing or not working properly, though it likely won't help you save that much space. One thing to note is that this only works for modern/UWP apps, but if you want to know how to do it, here it is:

  • Choose Apps from the left-side menu.
  • Click Installed apps .
  • Find the app you want to reset, click the ellipsis ( ... ) button on the right, then Advanced options .
  • Scroll down to find the Reset button and click it.
  • Click Reset again.
  • Windows 11 will delete all the files associated with the app so you can start fresh.

The Microsoft Store can also cache files to help certain things load faster, but this can sometimes cause issues with app updates. If you need to clear the Microsoft Store cache, follow these steps:

  • Press Windows + R on your keyboard to open the Run dialog

Alternatively, you can type this command directly into the search bar in the Start menu or on the taskbar.

A terminal window will briefly open and then the Microsoft Store will launch with its cache deleted so you can try what you were doing again.

The DNS (Domain Name Server) cache can help Windows 11 connect to known websites and servers more quickly by memorizing what URLs are assigned to what IP addresses. It's rare, but this can sometimes cause issues when connecting to certain websites. To fix this, you can clear the DNS cache by following these steps:

  • Press Windows + X on your keyboard (or right-click the Start menu icon) and choose Terminal .
  • Type in this code then press Enter : ipconfig /flushdns
  • You should see a confirmation message saying the DNS resolver cache was flushed.

If you were having trouble connecting to a specific website before, this may help with that.

While this is hardly going to help with freeing up any storage, clearing your location history can be helpful if you don't want Windows 11 to know where you've been. Basically, whenever Windows 11 accesses your location (for example, for a mapping app or the weather), it keeps a record of your location for a while after that. If you want to delete this information, here's how to do it:

  • Choose Privacy & security from the menu on the left side.
  • Choose Location .
  • Find the Location history option and click Clear on the right side.
  • That's it! You've now cleared the location history on your device, though it will likely build up again soon after, unless you disable location access altogether.

Clear your cache to free up space and keep things running smoothly

The steps above can help you free up space on your computer and also improve functionality in certain cases where you may be running into issues. If you're having problems with a specific browser, you can also clear the cached files for each browser in their respective settings. Sometimes, Windows Update can also fail due to some cached or leftover files, though that requires more dedicated steps to fix.

How to troubleshoot Windows updates stuck downloading

How to clear the cache on Windows 11

IMAGES

  1. How to Clear DNS Cache in Apple Safari

    clear safari dns cache

  2. How to clear the cache on a Safari browser to make it run faster

    clear safari dns cache

  3. How to Clear DNS Cache on Chrome, Firefox and Safari

    clear safari dns cache

  4. How to clear the DNS cache on your iPhone, iPad & Mac

    clear safari dns cache

  5. Easy Steps to Clear DNS Cache on Windows, Chrome, Firefox, and Safari

    clear safari dns cache

  6. How to Clear DNS Cache: Step by Step Guide for All

    clear safari dns cache

VIDEO

  1. Clear or flush DNS Cache on Chrome

  2. Clear Safari cache history and cookies on iPhone

  3. Instructions on how to clear cache on all browsers

  4. HOW TO CLEAR CACHE & CLEAR BROWSING HISTORY LESS LOGGING #cleaning

  5. How to Clear the DNS Cache in Windows and Chrome

  6. How to Clear Host Cache in Chrome DNS Cache Chrome Net Internals _ Learn Bulk #tips #tricks

COMMENTS

  1. How to Clear DNS Cache on Chrome, Firefox and Safari

    On Safari, go to preferences. Click Command+, Go the Advanced section. Mark the option which says "Show Develop menu in menu bar". Now you should have a new Develop option in your menu bar. Go to Develop. Click on "Empty Caches" or simply do it with a shortcut: Option+Command+E. 4. Opera Clear DNS Cache.

  2. How to Clear the DNS Cache in Chrome, Edge, Firefox, Safari, and ...

    Repeat the following steps to clear the Opera DNS cache: Press Ctrl + T to open a new tab in Opera. Input the opera://net-internals/#dns command in the URL bar and press the Enter key. The DNS page will launch. Click on the Clear host cache button to remove the DNS cache records.

  3. network

    Since Safari had previously visited foo.dev, it kept requesting that page, although dig resolved foo.dev to localhost. It didn't help to clear Safari's web cache and flush the system's DNS cache: sudo dscacheutil -flushcache It was first after a reboot that Safari properly visited the localhost instance of foo.dev (vhost).

  4. How to clear the DNS cache on your iPhone, iPad & Mac

    2) Type opera://net-internals/#dns in the address bar, then press Enter. 3) You'll be taken to the DNS section of Opera's internal settings page. Click the button labeled Clear host cache to flush the DNS cache. 4) Open a new tab, then type in the address opera://net-internals/#sockets and press Enter.

  5. How to Flush DNS Cache on a Mac

    To reset the DNS cache on a Mac, you need to enter a Terminal command on your Mac . Here's how to flush your DNS cache on a Mac: Type Command + Space to open Spotlight. Type Terminal, and select Terminal from the search results. You can also access Terminal by navigating to Go > Utilities > Terminal. Enter this command into the Terminal ...

  6. Fix the Web: How to Flush Your DNS Cache

    Click the Start menu and type "cmd." Right-click on the Command Prompt option and choose Run as Administrator. In the Command Prompt window that appears, type the following command: ipconfig ...

  7. How to Flush DNS on Mac

    Flushing the DNS cache prevents network security threats, malicious attacks, and DNS cache poisoning from happening. Hackers can access and corrupt your saved DNS cache records. For example, they could manipulate and change the IP address associated with a Domain Name of a website you have already visited and map it to a malicious one.

  8. Flush DNS Cache on Mac: Ways to Clear Effectively? [Different macOS]

    Type in Terminal, and double-click the Terminal application under Top Hit to open it. Once Terminal is open, enter this command: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. Enter your Mac's password and then press Enter to clear the DNS cache. Step 1. Open Spotlight.

  9. Clear DNS Cache on Chrome, Edge, Firefox, Opera, and Safari

    To clear DNS Cache on the Safari browser, follow these steps: Open your Safari browser and click on the Safari menu. Select the Preferences option from the drop-down list. In the Advanced tab, check the box next to the Show Develop menu in menu bar option.

  10. How to flush your DNS cache on Mac

    You can clear the safari cache easily by following the steps in our article about clearing the Safari cache, history, and cookies on Mac. Is it safe to clear DNS cache? Yes, flushing the DNS cache on your Mac is secure. Although cached data is only temporary storage, clearing the DNS cache too frequently may affect the website load time.

  11. Easy Steps to Clear DNS Cache on Windows, Chrome, Firefox, and Safari

    This page should show you DNS cache details and offers a button Clear DNS Cache, click on it to clear the browser's DNS cache. Safari. Safari has a hidden option to clear different caches, including DNS, from its menu bar. But first, you would need to enable Develop menu. To do that, go to Safari menu and then open Preferences.

  12. How to Clear your DNS Cache in macOS

    Time needed: 2 minutes. How to clear your DNS cache in macOS Ventura and Monterey. First, open your terminal. You can most likely find it within the Utilities folder. You can also find your ...

  13. How to Flush DNS Cache in macOS, Windows, & Linux

    Press Ctrl+Alt+T on your keyboard and use the corresponding command to clear the DNS cache for the service your Linux system is running. Flush Local NCSD DNS Cache. Use this command to clear the NCSD DNS cache on your Linux machine: sudo /etc/init.d/nscd restart. Enter your password if necessary. The process stops and then starts the NCSD ...

  14. How to Clear DNS Cache in Chrome, Edge, Firefox, Opera & Safari

    Here's how to clear the DNS cache in Edge: Open the Edge browser and type edge://net-internals/#dns into the address bar. On the Network Internals tool page, click on the Clear host cache button. Doing so will clear the DNS cache in Edge. Close the Network Internals tool page and restart Edge for the changes to take effect.

  15. How to clear the DNS Cache?

    Steps to clear the DNS Cache. Internet Explorer 8 and above (Windows) Go to the History menu, select Delete Browsing History, check all boxes (except passwords, if desired) and click Delete. Mozilla Firefox (Windows) Click on Firefox at the top left of your browser, go to the History menu, select Clear Recent History and check all boxes.

  16. Flush DNS Cache on Windows, Chrome, Firefox, and Safari

    Here are the steps to flush DNS Cache using Windows command prompt. Step 1) Click START from your Windows screen. Step 2) Type CMD in the search space. Step 3) Ensure you run the Windows command prompt with admin rights. Step 4) To include admin rights, right-click the command prompt. Step 5) A toggle window will open.

  17. How to Clear DNS Cache in Chrome, Edge, Safari, Firefox, and Opera

    Once the Command Prompt opens, enter the following command: ipconfig /flushdns. 3. If the flushing is successful, you will see either see the "Windows IP configuration successfully flushed the DNS Resolver Cache" or "Successfully flushed the DNS Resolver Cache" message. 4. Restart your computer and you are good to go.

  18. How to clear your DNS cache in 5 minutes

    Microsoft Edge. Open Microsoft Edge and click on the three-dot menu at the top right and choose 'History'. Next choose 'Clear Browsing Data'. A new window will open. Use the "Time Range ...

  19. Clear the history, cache, and cookies from Safari on your iPhone, iPad

    Delete history, cache, and cookies. Go to Settings > Safari. Tap Clear History and Website Data. Clearing your history, cookies, and browsing data from Safari won't change your AutoFill information. When there's no history or website data to clear, the button to clear it turns gray.

  20. How to Clear Safari Browser Cache on Mac, iPhone, or iPad

    Tap "Clear History and Website Data" in the Safari settings. Stefan Ionescu/Insider. 4. On the screen that pops up, choose Clear History and Data. Quick tip: If the steps above don't empty your ...

  21. How to clear Safari cache and cookies on a Mac

    Cleaning cookies and the cache data for individual sites can be done via Safari's Settings/Preferences. Open Safari. Click on Safari in the menu at the top of the screen. Click on Settings or ...

  22. How To Clear DNS Cache on Windows, Chrome, Firefox and Safari With 5

    Clearing DNS Cache on Chrome. The most popular web browser across the globe, Google Chrome, maintains its own DNS cache. Here are the steps on how to clear its DNS cache. Step 1: Select the 3-dot menu icon in the top-right and select "Settings".

  23. How to Flush DNS Cache on Mac in macOS 14 Sonoma

    Next, you need to copy the following command string and paste it into the command line prompt in the Terminal app. Make sure to paste the exact command. sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. 3. Then, press the return key. 4.

  24. How To Clear The DNS Cache

    Clear your local DNS Cache [ Windows / Mac / Linux ] When you connect to a website, it will cache the Domain Name Server [DNS] settings to your machine. ... In Mac OSX Leopard, you can use the command "dscacheutil -flushcache" to flush the DNS cache from Terminal: bash-2.05a$ dscacheutil -flushcache. In Mac OSX versions 10.5.1 and before, the ...

  25. Flush DNS Cache on Windows, Chrome, Firefoxog Safari

    Method 5: How to Flush Clear DNS Cache on Safari. Safari, the default web browser of macOS, has a different way to clear the DNS cache on Safari. Determining where the DNS cache clear option is is challenging without knowing indstillingerne. Here are the steps to locate and clear the DNS cache in Safari: Trin 1) Safari> Menu Bar.

  26. How to clear the cache on Windows 11

    How to clear (flush) the DNS cache on Windows 11 . The DNS (Domain Name Server) cache can help Windows 11 connect to known websites and servers more quickly by memorizing what URLs are assigned to ...