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
- 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, Ventura and Sonoma:
- 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).
- If the process works, it should state it has flushed the resolver cache. You may now close the window.