Kali-Linux
顯示連接,但不載入任何內容(DNS 解析失敗)
已安裝無線驅動程序,NetworkManager 工作,但在 firefox/任何 OTA 上都不會載入任何內容
wlan0 出現,內置無線網卡,通過設置 - 網路,它說我已無線連接,但網際網路上不會載入任何內容。即使連接到乙太網。
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 ether 3c:07:54:3c:08:3a txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 16 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1 (Local Loopback) RX packets 24 bytes 1664 (1.6 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 24 bytes 1664 (1.6 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.53 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::dd5b:7d61:4623:70a prefixlen 64 scopeid 0x20<link> ether b8:8d:12:2d:fc:82 txqueuelen 1000 (Ethernet) RX packets 376 bytes 84045 (82.0 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 85 bytes 11346 (11.0 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ping facebook.com
:ping: facebook.com: Temporary failure in name resolution
ping 31.13.81.36
:PING 31.13.81.36 (31.13.81.36) 56(84) bytes of data. 64 bytes from 31.13.81.36: icmp_seq=2 ttl=84 time=40.1 ms 64 bytes from 31.13.81.36: icmp_seq=3 ttl=84 time=41.4 ms 64 bytes from 31.13.81.36: icmp_seq=4 ttl=84 time=41.9 ms 64 bytes from 31.13.81.36: icmp_seq=5 ttl=84 time=40.5 ms 64 bytes from 31.13.81.36: icmp_seq=6 ttl=84 time=40.3 ms 64 bytes from 31.13.81.36: icmp_seq=7 ttl=84 time=39.2 ms ^C --- 31.13.81.36 ping statistics --- 7 packets transmitted, 6 received, 14% packet loss, time 6032ms rtt min/avg/max/mdev = 39.294/40.613/41.901/0.874 ms
您的 Internet 連接正常,
ping 31.13.81.36
. 缺少的是 DNS 名稱查找,這就是ping facebook.com
失敗的原因。我無法解釋為什麼你什麼都沒有,/etc/resolv.conf
但這應該讓你開始。
/etc/resolv.conf
以此為出發點創造缺失nameserver 8.8.8.8 nameserver 8.8.4.4