修改配置文件:/etc/sysconfig/network-scripts/ifcfg-eth0vim
vim /etc/sysconfig/network-scripts/ifcfg-eth0
在裏面添加上dns解析的配置便可:rest
從新network:code
service network restart