linux - DNS error occurs, the software can access the Internet, and the wrong IP is displayed in the terminal wget, but the request can be successful.
我想大声告诉你
我想大声告诉你 2017-07-03 11:41:29
0
1
935
$: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]
我想大声告诉你
我想大声告诉你

reply all (1)
过去多啦不再A梦

Finally solved. It turns out that due to macproxy, dns uses remote by default, so changing it to local solves the problem. I almost had to reinstall the system, I cried with laughter~

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!