Question:
The ping is different when pinging www.baidu.com
cat /etc/resolv.conf
When viewed, the following content will appear:
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
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!