1.cat /etc/resolv.conf
search localdomain
nameserver 192.168.2.1 #默认1
nameserver 192.168.2.1 #默认2
2.vi /etc/resolv.conf
search localdomain
nameserver 192.168.2.1 #默认1
nameserver 192.168.2.1 #默认2
3.重启网络: /etc/init.d/network restart
service network restart