1.编辑netplan下的yaml文件
2.重启网络 netplan apply
3.删除原resolv.conf, rm -rf /etc/resolv.conf
4.创建软连接,ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
2021-12-19 09:34:49
1.编辑netplan下的yaml文件
2.重启网络 netplan apply
3.删除原resolv.conf, rm -rf /etc/resolv.conf
4.创建软连接,ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf