如果配置的 DHCP 動態互聯網,則在/etc/resolv.conf 檔案中新增
nameserver 8.8.8.8
如果是靜態互聯網,則在/etc/sysconfig/network-scripts/ifcfg-eth0 檔案中新增
DNS1=8.8.8.8
然後重啓互聯網服務,
service network restart
如果配置的 DHCP 動態互聯網,則在/etc/resolv.conf 檔案中新增
nameserver 8.8.8.8
如果是靜態互聯網,則在/etc/sysconfig/network-scripts/ifcfg-eth0 檔案中新增
DNS1=8.8.8.8
然後重啓互聯網服務,
service network restart