答:
我也遇到同样的问题,windows没问题,linux下可以ping通域名,但是仍然报错Network connect fail, domain[api.tuisong.baidu.com] exists?
ping api.tuisong.baidu.com
PING channel.api.n.shifen.com (180.149.132.103) 56(84) bytes of data.
64 bytes from 180.149.132.103: icmp_seq=1 ttl=55 time=42.1 ms
64 bytes from 180.149.132.103: icmp_seq=2 ttl=55 time=42.0 ms
64 bytes from 180.149.132.103: icmp_seq=3 ttl=55 time=42.2 ms
64 bytes from 180.149.132.103: icmp_seq=4 ttl=55 time=42.0 ms
使用curl 访问api.tuisong.baidu.com 会提示404错误
curl -I api.tuisong.baidu.com
HTTP/1.1 404 Not Found
Content-Type: text/html
Content-Length: 345
Date: Wed, 18 May 2016 08:04:31 GMT
Server: BWS/1.0
不过访问www.api.tuisong.baidu.com没有问题
curl -I www.api.tuisong.baidu.com
HTTP/1.1 200 OK
Server: nginx/0.8.53
Date: Wed, 18 May 2016 09:08:23 GMT
Content-Type: text/html
Content-Length: 322
Last-Modified: Thu, 10 Dec 2015 15:36:39 GMT
Connection: keep-alive
Accept-Ranges: bytes