🤖 Ai回答: DNS flush (also known as DNS cache clearing) is a process that removes outdated or incorrect DNS records from your device's or network's local DNS cache、This helps resolve issues like websites not loading correctly due to cached incorrect IP addresses.
What is DNS Flush?
Purpose: Clears the DNS cache to refresh DNS resolution.
Use Case: When a website’s IP address changes, or when you encounter errors like Cannot resolve host or No connection could be made to the host.
How to Perform a DNS Flush
1、On Windows (Computer)
Open Command Prompt (press `Win + R`, type `cmd`, then enter).
Run:
ipconfig /flushdns
Note: This resets DNS cache for your current network interface.
2、On macOS (Mac)
Open Terminal.
Run:
sudo dscacheutil -flushall
Note: You may need to enter your password for permission.
3、On Linux (Ubuntu/Debian)
Open Terminal.
Run:
sudo systemd-resolve flush-caches
Note: Alternatively, use:
sudo systemctl restart NetworkManager
4、On Router (Home Network)
Log in to your router’s admin panel (e.g., via a web browser).
Navigate to DNS Settings or Network Settings.
Locate the Clear DNS Cache option and click it.
Save changes and restart the router if needed.
When to Use DNS Flush?
After updating DNS servers (e.g., switching to Google DNS or Cloudflare).
When encountering DNS-related errors (e.g., slow load times, incorrect IP addresses).
Before installing new software or changing network settings.
Important Notes
Temporary Issues: Flushing DNS cache can cause short-term problems, especially if the DNS server is down or the cached records were critical for your device.
No Automatic Fix: It doesn’t resolve underlying network or ISP issues (e.g., routing problems).
Backup Caches: Some systems allow you to save the current cache before flushing (e.g., in Windows, you can choose Save Current DNS Cache before running `ipconfig /flushdns`).
Example Scenario
If you visit `www.65.hk` and it redirects to an incorrect IP (e.g., `192.0.2.1` instead of `192.0.2.3`), flushing the DNS cache could resolve the issue by ensuring your device fetches the correct IP.
Let me know if you need help with specific OS or device types! 🌐