unix系统能ping通ip但无法ping域名的解决方法

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

1
2
3
4
5
6
7
8
9
sudo vi /etc/nsswitch.conf
'''
- hosts: files dns
- networks: files
@@
+ hosts: files dns wins
+ networks: files
'''
sudo systemctl restart network.service    #重启rhel网络
加载评论