3、解决方法
更换 DNS 服务器(如使用 Google DNS `8.8.8.8` 或 Cloudflare DNS `1.1.1.1`)。
清除本地 DNS 缓存:
Windows:`ipconfig /flushdns`
Linux:`sudo systemdresolve flushcaches`
检查域名注册商的 DNS 设置(如阿里云、腾讯云等)。
确保域名已备案(中国境内需备案)。
四、DNS 解析的优化
1、使用公共 DNS
Google DNS:`8.8.8.8`、`8.8.4.4`
Cloudflare DNS:`1.1.1.1`、`1.0.0.1`
阿里云 DNS:`223.5.5.5`、`223.6.6.6`
2、设置合理的 TTL 值
在域名的 DNS 记录中设置 TTL(Time to Live),控制缓存时间(如 300 秒 = 5 分钟),避免频繁解析。