标签:
继该问题后,修改了/etc/nsswitch.conf会导致DNS域名无法解析
正确应该填写为 host: files dns
PS:网上教程教修改/etc/resolv.conf,在文件里添加nameserver 8.8.8.8 nameserver 114.114.114.114,再执行service network restart会把nameserver恢复为/ect/sysconfig/network-scripts/ifcfg-eth0里的dns1 dns2 。。。遂只需修改ifcfg-eth即可
标签:
原文地址:http://www.cnblogs.com/ssing/p/4684116.html