Flushing your DNS cache clears any old or outdated information your computer is using to resolve domain names into IP addresses. This can be helpful if you're experiencing website loading issues or if you've recently changed your DNS settings.
Here's how to flush your DNS cache on different operating systems:
Windows
- Open the Command Prompt: Press the Windows key + R, type cmd, and press Enter.
- Run the command: Type ipconfig /flushdns and press Enter.
- Verify the result: You should see a message confirming that the DNS Resolver Cache has been successfully flushed.
macOS
- Open Terminal: Go to Applications > Utilities > Terminal.
- Run the command: Type sudo dscacheutil -flushcache and press Enter.
- Enter your password: You'll be prompted to enter your administrator password.
- Verify the result: You should see a message confirming that the DNS cache has been flushed.
Linux
- Open a terminal: Use the shortcut Ctrl + Alt + T.
- Run the command: Type sudo systemd-resolve --flush-caches and press Enter.
- Enter your password: You'll be prompted to enter your administrator password.
- Verify the result: There should be no output if the command was successful.
Note: You may need to restart your browser or other applications after flushing your DNS cache for the changes to take effect.