centos7怎么修改dns


本文摘自PHP中文网,作者V,侵删。

编辑/etc/NetworkManager/NetworkManager.conf文件

1

[root@localhost ~]# vim /etc/NetworkManager/NetworkManager.conf

在文件末尾添加dns=none

1

2

3

[main]

#plugins=ifcfg-rh,ibft

dns=none

重启服务

1

[root@localhost ~]# systemctl restart NetworkManager.service

编辑/etc/resolv.conf文件

1

[root@localhost ~]# vim /etc/resolv.conf

修改如下:

1

2

3

# Generated by NetworkManager

nameserver 114.114.114.114

nameserver 8.8.8.8

推荐教程:centos教程

以上就是centos7怎么修改dns的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

CentOS7上elastic search安装详解

CentOS7怎么从普通用户切换到root用户

CentOS7下无法启动ssh服务

CentOS7怎么安装桌面环境

rhel和CentOS7下更改网卡名称ens33为eth0

CentOS7如何查看mysql服务是否启动

CentOS7安装教程

CentOS7如何使用yum安装php7.2

CentOS7怎么安装apache

CentOS7怎么进入单用户模式

更多相关阅读请进入《CentOS7》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...