如果配置的 DHCP 动态互联网,则在/etc/resolv.conf 档案中新增
nameserver 8.8.8.8
如果是静态互联网,则在/etc/sysconfig/network-scripts/ifcfg-eth0 档案中新增
DNS1=8.8.8.8

然后重启互联网服务,
service network restart