在linux终端执行ping指令
ping www.baidu.com
观察有无输出
若无输出则执行 nslookup -> server
进入etc目录下resolv.conf文件
sudo vim /etc/resolv.conf
重启网络
解决DNS解析错误后Linux无法连接网络的问题
最新推荐文章于 2024-08-18 22:01:42 发布
在linux终端执行ping指令
ping www.baidu.com
观察有无输出
若无输出则执行 nslookup -> server
进入etc目录下resolv.conf文件
sudo vim /etc/resolv.conf
重启网络