centos7 配置dns
centos7 配置dns
1、修改网卡信息
#取消NetworkManager管理 NM_CONTROLLED=no
2、重启网络服务
systemctl restart network
3.配置DNS
3.1修改NetworkManager.conf 配置文件
vim /etc/NetworkManager/NetworkManager.conf
在[main]中添加
dns=no
3.2修改resolv.conf配置文件
vim /etc/resolv.conf
添加
#主DNS服务器 nameserver 223.5.5.5 <----阿里dns #备DNS服务器 nameserver 114.114.114.114
4重启NetworkManager
systemctl restart NetworkManager
相关推荐
localhost0 2020-11-12
jlccwss 2020-09-11
lwplvx 2020-09-07
YzhilongY 2020-08-31
KevinXC 2020-08-12
oLeiShen 2020-08-01
dahege 2020-08-01
windzoone 2020-07-29
travelinrain 2020-07-27
hxf0 2020-07-10
oLeiShen 2020-06-25
oLeiShen 2020-06-25
dahege 2020-06-25
dahege 2020-06-22
MissFuTT 2020-06-21
ationwork 2020-06-16
kenson 2020-06-12
chwzmx 2020-06-09