https://blog.csdn.net/bbaiggey/article/details/53185011

https://blog.csdn.net/lishuan182/article/details/81383448

https://www.cnblogs.com/myvic/p/6209190.html


步骤:

vim /etc/sysconfig/network-scripts/ifcfg-eth0

添加:

DNS1=114.114.114.114
DNS2=8.8.8.8


重启网络:

service network restart  或者 /etc/init.d/network restart