linux - DNS出错,软件都可以上网,在终端wget显示错误的IP,但是可以请求成功。
我想大声告诉你
我想大声告诉你 2017-07-03 11:41:29
[Linux讨论组]
$: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]
我想大声告诉你
我想大声告诉你

全部回复(1)
过去多啦不再A梦

终于解决了。原来macproxy的缘故,dns默认是采用remote的形式,改成local问题解决。差点要重装系统了,笑哭~

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号