用nslookup 域名.com返回127.0.0.53无法解析错误
error="Could not lookup srv records on xxx.com: lookup xxx.com on 127.0.0.53:53: no such host"
#首次尝试编辑/etc/resolved.conf文件DNS为8.8.8.8 或1.1.1.1
发现reboot重启后又恢复到127.0.0.53的内容
#再次尝试修改 /etc/systemd/resolved.conf 文件,在其中添加dns信息
DNS=8.8.8.8 或DNS=1.1.1.1 或DNS=114.114.114.114
sudo vim /etc/systemd/resolved.conf
#保存退出
#依次执行
#重启解析服务
sudo systemctl restart systemd-resolved
#设置解析服务开机启动
sudo systemctl enable systemd-resolved
#备份历史解析信息
sudo mv /etc/resolv.conf /etc/resolv.conf.bak
#创建解析配置软链接 -f 表示如果链接存在则强制覆盖
sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
#查看/etc/resolv.conf 如果发现新的DNS 在里面了,说明成功了
cat /etc/resolv.conf
#最后验证,是否正常
nslookup xxx.com
dig xxx.com