How To Flush DNS Cache On Windows And MAC?

Published On:
» Home » Tech Guides » How To Flush DNS Cache On Windows And MAC?

Here in this article, we are going to discuss the following topics,

DNS stands for Domain Name System and it plays a very integral part in the web’s infrastructure.

Each time when you try to visit any website on the internet, your computer runs a DNS lookup in order to successfully help you access the website.

Each time you open a website from your browser, it requests the DNS server for the IP address of the URL so it can successfully open the URL for you. By default, your Windows and MAC OS will cache these IP addresses along with DNS records for the purpose of fulfilling your future needs fast.

This is what a DNS cache is, and here in this article, we are going to help you clear these DNS caches from your Windows and MAC devices.

But, the question is why do you need to flush the DNS Cache?

Over time when your DNS cache gets piled up it may get corrupted or may prevent sending new requests, and this is not a good situation as it can cause several issues.

How To Flush DNS Cache For Windows?

  • Tap the Start button from the keyboard.
  • Search for Command Prompt from the search bar.
  • When the “Command Prompt” app appears, Right-click on it.
  • Select Run As Administrator.
  • Then enter the command ipconfig /flushDNS and press Enter.

How To Flush DNS Cache For Macbook?

  • Go to Finder
  • From the left side menu Select Applications.
  • Go to the Utilities folder and Open it.
  • Then Open Terminal.
  • Then enter the command: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder.
  • Then press Enter.
  • If it asks for your admin password, Enter it.
  • Then press Enter again.