Home  >  Article  >  Database  >  Oracle Enterprise Linux dns问题

Oracle Enterprise Linux dns问题

WBOY
WBOYOriginal
2016-06-07 16:52:52891browse

配置好/etc/resolv.conf,可以nslookup,但是ping不通域名,直接ping ip没问题,困扰了很久。在网上搜了半天最后找到解决方案:v

配置好/etc/resolv.conf,,可以nslookup,但是ping不通域名,直接ping ip没问题,困扰了很久。

在网上搜了半天最后找到解决方案:

vi /etc/nsswitch.conf

“hosts: files”

改为

“hosts: files dns”

再试试解决问题。

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn