Home  >  Article  >  Operation and Maintenance  >  The centos system cannot resolve the address after modifying the dns

The centos system cannot resolve the address after modifying the dns

王林
王林Original
2020-03-16 20:11:202837browse

The centos system cannot resolve the address after modifying the dns

Question:

The ping is different when pinging www.baidu.com

cat /etc/resolv.conf

When viewed, the following content will appear:

The centos system cannot resolve the address after modifying the dns

In addition to modifying the dns address, there will also be a physical machine gateway address, and this address will be added every time the network is restarted.

(Recommended tutorial: centos usage tutorial)

Solution:

yum -y remove NetworkManager
systemctl restart network
cat /etc/resolv.conf

The content of the file /etc/resolv.conf is

The centos system cannot resolve the address after modifying the dns

ping www.baidu.com

Successful visit!

Recommended related video tutorials: linux video tutorial

The above is the detailed content of The centos system cannot resolve the address after modifying the dns. For more information, please follow other related articles on the PHP Chinese website!

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