仅作为一个记录,并不包含问题分析
解决方案:
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
问题排查:
检查/etc/resolve.conf
的实际指向 (参考链接)
$ readlink /etc/resolv.conf
../run/resolvconf/resolv.conf
与默认值不一致,使用以下命令修改:
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
参考链接:
The symbolic link /etc/resolv.conf points to the wrong file by default