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下配置ftp服务器

CentOS7如何安装docker

CentOS7下无法ping通网关怎么解决

CentOS7下安装docker的正确步骤

CentOS7如何设置静态ip地址

CentOS7设置打不开怎么办

CentOS7怎么安装nginx-yum方式

linux学习第三篇之CentOS7安装mysql5.7.16数据库的详细介绍

虚拟机下CentOS7无法ping通网关怎么办

centos6与CentOS7有哪些区别

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



打赏

取消

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

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

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

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

评论

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