小樱 发表于 2017/9/5 01:04

linux 下利用curl获取某个ip是哪个cdn厂商的方法

curl -v -k -I https://220.202.121.2

# curl -v -k -I https://220.202.121.2
* About to connect() to 220.202.121.2 port 443 (#0)
*   Trying 220.202.121.2... connected
* Connected to 220.202.121.2 (220.202.121.2) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* warning: ignoring value of ssl.verifyhost
* skipping SSL peer certificate verification
* SSL connection using TLS_RSA_WITH_AES_128_CBC_SHA
* Server certificate:
*         subject: CN=*.b0.upaiyun.com,OU=技术部,O=Hangzhou Weiju Network Ltd.,L=hangzhou,ST=zhejiang,C=CN
*         start date: Nov 14 00:00:00 2016 GMT
*         expire date: Dec 12 23:59:59 2017 GMT
*         common name: *.b0.upaiyun.com
*         issuer: CN=GeoTrust SSL CA - G3,O=GeoTrust Inc.,C=US
> HEAD / HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: 220.202.121.2
> Accept: */*
>
< HTTP/1.1 400 Bad Request
HTTP/1.1 400 Bad Request
< Server: marco/1.7
Server: marco/1.7
< Date: Mon, 04 Sep 2017 17:02:57 GMT
Date: Mon, 04 Sep 2017 17:02:57 GMT
< Content-Type: text/html
Content-Type: text/html
< Connection: keep-alive
Connection: keep-alive
< Via: M.cun-hn-csx-006
Via: M.cun-hn-csx-006
< X-Request-Id: Unknown
X-Request-Id: Unknown

<
* Connection #0 to host 220.202.121.2 left intact
* Closing connection #0

例如,这就是又拍租用阿里线路分组的CDN。

页: [1]
查看完整版本: linux 下利用curl获取某个ip是哪个cdn厂商的方法