Home > Database > Mysql Tutorial > Oracle Enterprise Linux dns问题

Oracle Enterprise Linux dns问题

WBOY
Release: 2016-06-07 16:52:52
Original
954 people have browsed it

配置好/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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template