1.查看 /etc/resolv.conf文件,该文件是DNS解析的最终文件。

    删除原有的resolv
    sudo rm -rf /etc/resolv.conf
    netplan会在/run/system里生成,因此,对该文件设置一个软连接即可。
    sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf

    PS:善用软连接的软连接

    来源:https://blog.csdn.net/weixin_45982158/article/details/116134993