wiki/运维/操作系统/Linux/排障/刷新DNS缓存.md
2025-08-12 22:30:05 +08:00

13 lines
686 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

**刷新本地DNS缓存** 这是最简单有效的第一步,可以清除电脑里缓存的错误解析记录。
- **Windows:** 打开命令提示符(以管理员身份),输入 `ipconfig /flushdns` 后回车。
- **macOS:** 打开“终端”,输入 `sudo killall -HUP mDNSResponder` 后回车(需要输入你的电脑密码)。
**更换公共DNS服务器** 将你电脑或路由器的DNS设置从“自动获取”修改为手动指定这能有效绕开运营商DNS的干扰。推荐使用
- **Google DNS:** 主 `8.8.8.8` / 备 `8.8.4.4`
- **Cloudflare DNS:** 主 `1.1.1.1` / 备 `1.0.0.1`
- **阿里DNS (AliDNS):**`223.5.5.5` / 备 `223.6.6.6`