from http://www.cnblogs.com/laipDIDI/articles/2213787.html

sudo vi /etc/nsswitch.conf
'''
- hosts: files dns
- networks: files
@@
+ hosts: files dns wins
+ networks: files
'''
sudo systemctl restart network.service    #重启rhel网络