/etc/resolv.conf文件自动恢复的解决方法:
service NetworkManager stop #后台进程关闭
chkconfig NetworkManager off #配置关闭,永久生效。