1. DNS解析问题
- 本地ping域名失败
nslookup xxx.com
域名失败
2. 修复
2.1 编辑下面这个文件,添加DNS服务IP
/etc/systemd/resolved.conf DNS=183.60.83.19 183.60.82.98
2.2.重建解析配置文件软链接
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
2.3.重启解析服务
systemctl restart systemd-resolved
nslookup xxx.com
域名失败2.1 编辑下面这个文件,添加DNS服务IP
/etc/systemd/resolved.conf
DNS=183.60.83.19 183.60.82.98
2.2.重建解析配置文件软链接
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
2.3.重启解析服务
systemctl restart systemd-resolved