From 3a84c08846ae0e97c869afd3225e86eba9f1ce81 Mon Sep 17 00:00:00 2001 From: zhengchiliu <857493511@qq.com> Date: Tue, 12 Aug 2025 22:30:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BF=90=E7=BB=B4=E6=96=87?= =?UTF-8?q?=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 运维/操作系统/Linux/排障/刷新DNS缓存.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 运维/操作系统/Linux/排障/刷新DNS缓存.md diff --git a/运维/操作系统/Linux/排障/刷新DNS缓存.md b/运维/操作系统/Linux/排障/刷新DNS缓存.md new file mode 100644 index 0000000..3ebea90 --- /dev/null +++ b/运维/操作系统/Linux/排障/刷新DNS缓存.md @@ -0,0 +1,13 @@ +**刷新本地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` \ No newline at end of file