Flushing your DNS cache can help to resolve issues with web pages not loading properly or showing outdated information. Here are the steps to flush your DNS cache on a few popular operating systems:
Windows:
- Open Command Prompt as an administrator.
- Type “ipconfig /flushdns” and press Enter.
- You will see a message that says “Windows IP configuration successfully flushed the DNS Resolver Cache.”
MacOS:
- Open Terminal.
- Type “sudo killall -HUP mDNSResponder” and press Enter.
- You will be prompted to enter your admin password.
- Once you enter your password, the DNS cache will be flushed.
Linux:
- Open Terminal.
- Type “sudo /etc/init.d/nscd restart” and press Enter.
- You will be prompted to enter your admin password.
- Once you enter your password, the DNS cache will be flushed.
Ubuntu:
- Open a terminal window by pressing “Ctrl+Alt+T”
- Type the following command “sudo systemd-resolve –flush-caches” and press enter
- You will be prompted to enter your admin password.
- Once you enter your password, the DNS cache will be flushed.
Alternatively, you can use the following command to flush the DNS cache:
- Open a terminal window by pressing “Ctrl+Alt+T”
- Type the following command “sudo /etc/init.d/dns-clean restart” and press enter
- You will be prompted to enter your admin password.
- Once you enter your password, the DNS cache will be flushed.
Please note that flushing your DNS cache may cause a temporary interruption in your internet connectivity. Also, it’s important to mention that these steps are for Ubuntu specifically, other Linux distros may have different commands to flush the DNS cache.