修改配置文件:/etc/sysconfig/network-scripts/ifcfg-eth0
vim /etc/sysconfig/network-scripts/ifcfg-eth0
在里面添加上dns解析的配置即可:
重新network:
service network restart