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

The centos system cannot resolve the address after modifying the dns

王林
Release: 2020-03-16 20:11:20
Original
2868 people have browsed it

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
Copy after login

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
Copy after login

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

The centos system cannot resolve the address after modifying the dns

ping www.baidu.com
Copy after login

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!

Related labels:
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