系统相关
首页 > 系统相关> > ubuntu18.04 netplan 设置dns,dns不生效

ubuntu18.04 netplan 设置dns,dns不生效

作者:互联网

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

标签:dns,netplan,resolv,etc,csdn,conf,ubuntu18.04
来源: https://www.cnblogs.com/davis12/p/15449301.html