Body
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 Mac Terminal with sudo killall -HUP mDNSResponder entered](https://itsupport.ou.edu/TDPortal/Images/Viewer?fileName=69e28ae5-de41-4ebc-a31e-1e51e3570b47.png)
- 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 Windows Command Prompt Window with ipconfig /flushdns Entered](https://itsupport.ou.edu/TDPortal/Images/Viewer?fileName=1db35c50-4b92-485e-9342-029a322fd234.png)
- If the process works, it should state it has flushed the resolver cache. You may now close the window.