在我的 Ubuntu 22.04 中突然没有互联网了。虽然WiFi已连接。我在 YouTube 视频中发现了这个解决方案。我resolv.conf按如下方式编辑了我的文件:
#nameserver ::1
#nameserver 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4
Run Code Online (Sandbox Code Playgroud)
现在我有互联网了。我想知道按照这种方法我的系统是否安全?
另外为什么我必须编辑/etc/resolv.conf才能恢复互联网
我的结果ls -al /etc/resolv.conf是——
-rw-r--r-- 1 root root 975 May 23 16:27 /etc/resolv.conf
Run Code Online (Sandbox Code Playgroud)