---
title: How to clear the DNS cache on Mac or Windows
description: "In this article, you will learn how to clear the DNS cache on Mac or Windows operating systems. It is important to clear your DNS cache as it may contain outdated information such as the website displaying differently. ## Microsoft…"
url: "https://staging2.conorbradley.co.uk/kb/how-to-clear-the-dns-cache-on-mac-or-windows/"
updated: "2022-05-05"
category: Getting Started Guide / Internet and networking information
tags:
  - Cache
  - DNS
  - domain name
  - domains
  - hosting
---

# How to clear the DNS cache on Mac or Windows

In this article, you will learn how to clear the DNS cache on Mac or Windows operating systems. It is important to clear your DNS cache as it may contain outdated information such as the website displaying differently.

## Microsoft Windows

To clear the DNS cache on Microsoft Windows, follow these steps:

1. Press the Windows icon located in the bottom left
2. Type CMD then click on the application command prompt
    The CMD window will open
3. Type the following into the window
    **ipconfig /flushdns**
4. Press enter
    The DNS cache has now been cleared

## Apple Mac OS X

To clear the DNS cache on Apple Mac OS X, follow these steps:

1. Open a Finder window and navigate to the following
    Applications > Utilities then click Terminal. A terminal window will now open.
2. Type the following into the terminal window:

   | macOS Catalina & Higher | **sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder** |
   | --- | --- |
   | macOS Mojave macOS High Sierra macOS Sierra OS X Mountain Lion Mac OS X Lion | **sudo killall -HUP mDNSResponder** |
   | Mac OS X El Capitan OS X Mavericks | **sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder** |
   | OS X Yosemite | **sudo discoveryutil mdnsflushcache; sudo discoveryutil udnsflushcaches** |
   | Mac OS X Snow Leopard Mac OS X Leopard | **sudo dscacheutil -flushcache** |
   | Mac OS X Tiger | **lookupd -flushcache** |
3. Press Enter
4. Enter your password then press enter again.
    When you type your password it will be invisible.
5. The DNS cache is now clear.

 

## Google Chrome Browser

If you are using the google chrome browser you will also need to clear it as it uses an internal DNS cache. To clear it, follow these steps:

1. Open Google Chrome.
2. In the address bar, type the following:
    chrome://net-internals/#dns
3. Press Clear host cache.
4. In the left menu press Sockets.
5. Press Close idle sockets.
6. Press Flush socket pools.
    You have now reset the DNS in chrome

 

 [Facebook](https://www.facebook.com/conorbradleydigitalagency) | [Twitter](https://twitter.com/ConorAgency) | [Instagram](https://instagram.com/conorbradleydigitalagency) | [LinkedIn](https://www.linkedin.com/company/conor-bradley-digital-agency)  | [Youtube](https://youtube.com/conorbradleydigitalagency) | [Vimeo](https://vimeo.com/conorbradleyagency) | [Blog](https://staging2.conorbradley.co.uk/blog/) | [Knowledge Base](https://staging2.conorbradley.co.uk/kb/) | [Client Area](https://billing.conorbradley.co.uk/login) | [Google Business](https://g.page/r/CUSmNJ3lhko9EBA)
