Ping百度,出现“ping:baidu.com: Temporary failure in name resolution“解决方案
【问题】ping baidu.com时,出现如下报错
- 显示"ping:baidu.com: Temporary failure in name resolution".
- 添加CDN,被拒绝写入
解决办法:查看文件是否被锁定,解锁后,尝试添加CDN
ls -al /run/systemd/resolve/resolv.conf
chattr -i /run/systemd/resolve/stub-resolv.conf
echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolv.conf //添加
搞定!!!