Oracle Enterprise Linux dns问题
配置好/etc/resolv.conf,可以nslookup,但是ping不通域名,直接ping ip没问题,困扰了很久。
在网上搜了半天最后找到解决方案:
vi /etc/nsswitch.conf
将
“hosts: files”
改为
“hosts: files dns”
再试试解决问题。
相关推荐
windzoone 2020-07-29
kenson 2020-05-15
zealfish 2019-12-10
dahege 2020-02-22
furongwei 2020-02-13
wqx 2016-05-31
cuixingwudi 2008-08-06
LychieFan 2007-12-09
Linuxest 2007-12-09
梦想天空分外蓝 2007-12-02
taianxiaojia 2007-11-27
wozijisunfly 2007-10-29
HeKing 2007-10-28
thone00 2007-09-19
kyssfanhui 2007-09-15
RayDon 2007-09-01
SoarFly00 2007-09-01
linuxhh 2007-09-01