linux - ralat DNS berlaku, perisian boleh mengakses Internet, dan IP yang salah dipaparkan dalam wget terminal, tetapi permintaan itu boleh berjaya.
我想大声告诉你
2017-07-03 11:41:29
$:host www.baidu.com
www.baidu.com has address 0.0.0.90
www.baidu.com has IPv6 address ::0.0.0.91
$:dig +trace www.baidu.com
;; Question section mismatch: got ./RESERVED0/CLASS512
;; Question section mismatch: got ./RESERVED0/CLASS512
; <<>> DiG 9.8.3-P1 <<>> +trace www.baidu.com
;; global options: +cmd
;; connection timed out; no servers could be reached
$:wget www.baidu.com
--2017-07-01 15:34:44-- http://www.baidu.com/
Resolving www.baidu.com... 0.0.0.146, ::0.0.0.147
Connecting to www.baidu.com|0.0.0.146|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2381 (2.3K) [text/html]
Saving to: ‘index.html.1’
index.html.1 100%[===================>] 2.33K --.-KB/s in 0s
2017-07-01 15:34:44 (66.8 MB/s) - ‘index.html.1’ saved [2381/2381]
Akhirnya selesai. Ternyata disebabkan macproxy, dns menggunakan jarak jauh secara lalai, jadi menukarnya kepada tempatan menyelesaikan masalah. Hampir-hampir nak pasang semula sistem, menangis ketawa~