Flushing DNS Cache

Why would I need to Flush DNS?

Flushing DNS will clear bad connection data from your machine. This process also removes any old or incorrect DNS information that controlled how your computer connected out to the Internet. Afterwards, your computer should then start using the most up to date connection information.

Mac OS X

For macOS Yosemite:

  • To begin, open Terminal using Launchpad or Use Finder → Applications → Utilities, or Spotlight Search (Command+Space Bar) for it.
  • Now, you need to enter the command given below:
    • sudo discoveryutil udnsflushcaches
    Enter your Mac's password if prompted to do so, then hit Enter.
  • After a few moments the cache should clear.

For macOS El Capitan, Sierra, High Sierra and Mojave 

  • To begin, open Terminal using Launchpad or Use Finder → Applications → Utilities, or Spotlight Search (Command+Space Bar) for it.
  • Now, you need to enter the command given below:
    • sudo killall -HUP mDNSResponder Mac Terminal with sudo killall -HUP mDNSResponder entered
  • Enter your Mac's password if prompted to do so, then hit Enter.
  • After a few moments the cache should clear.

For macOS Catalina, Big Sur, Monterey and Ventura:

  • To begin, open Terminal using Launchpad or Use Finder → Applications → Utilities, or Spotlight Search (Command+Space Bar) for it.
  • Now, you need to enter the command given below and then hit Enter:
    • sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
    Enter your Mac's password if prompted to do so, then hit Enter.
  • After a few moments the cache should clear.

 

Windows

  • Open the Windows Command prompt by going to Start or click the Search icon on your Taskbar and type in CMD
  • Right-click the Command Prompt app icon and select the option to “Run as Administrator”.
  • In the open prompt, type “ipconfig /flushdns” (without the quotes). Windows Command Prompt Window with ipconfig /flushdns Entered
  • If the process works, it should state it has flushed the resolver cache. You may now close the window. 

 

Service Alerts

Check Alerts Subscribe

Can't find what you're looking for?

Contact Us

Details

Article ID: 157
Created
Fri 9/4/20 9:54 AM
Modified
Fri 10/6/23 10:11 AM