当前位置:网站首页>Ping error: unknown name or service

Ping error: unknown name or service

2022-07-07 23:47:00 zhqlee

ping Report errors : Unknown name or service

1、 error

background :centos7
operation : Install plug-ins online in the operating system , Find that all kinds of connections are not connected to the Internet , And the use of :ping www.baidu.com Wrong orders , The error screenshot is shown below :

 Insert picture description here

2、 solve

cd /etc/sysconfig/network-scripts
#  Edit network card profile 
vi ifcfg-ens33
#  Add content at the bottom of the content :DNS1=8.8.8.8
#  Restart network service 
systemctl restart network.service

3、 verification

 Insert picture description here

原网站

版权声明
本文为[zhqlee]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207072111550968.html