环境查看
设置临时生效,修改配置文件/etc/resolv.conf
nameserver 202.96.134.133
重启失效
设置永久生效,修改网卡配置文件/etc/network/interfaces
重启网络
systemctl restart networking
PS:需要安装resolvconf
apt install resolvconf
环境查看
设置临时生效,修改配置文件/etc/resolv.conf
nameserver 202.96.134.133
重启失效
设置永久生效,修改网卡配置文件/etc/network/interfaces
重启网络
systemctl restart networking
PS:需要安装resolvconf
apt install resolvconf
上一篇:FastDFS分布式文件系统
linux 目录挂载
最近虚拟化项目已经接近尾声,我们的虚拟化平台是基于Ubuntu定制的Linux的底层系统,今天一个服务需要使用外网的DNS服务,因此就
Ubuntu20.04添加虚拟网卡且永久生效,学习笔记整理
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M