To flush the DNS cache, you can use the following commands depending on your operating system:
Windows:
- Open the Command Prompt as an administrator.
- Type the following command and press Enter:
macOS:
The command may vary slightly depending on the macOS version:
- macOS Big Sur and later:
- macOS Catalina:
- macOS Mojave and High Sierra:
- Older versions (e.g., macOS Yosemite):
Make sure to enter your password when prompted.
Linux:
- Systemd-based systems (e.g., Ubuntu, Fedora):
- Using
nscd
(Name Service Cache Daemon): - Using
dnsmasq
:
Make sure to use the appropriate command for your specific setup!