Curl How to obtain the information of a specified IP host

October 30, 2017 19:25:12 System Tutorial Source: Blog Park comment four hundred and thirty-three

After using CDN, the domain name of the website corresponds to the theme of N CDNs, such as Sina. It can be seen from NSLOOKUP that it points to multiple IPs. The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Z:\>nslookup www.sina.com.cn The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Server: c.center-dns.jsinfo.net The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Address: 61.177.7.1 The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Name: newsnj.sina.com.cn The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Addresses: 202.102.75.169, 202.102.75.170, 202.102.75.161, 202.102.75.162 202.102.75.163, 202.102.75.164, 202.102.75.165, 202.102.75.166, 202.10 2.75.167 202.102.75.168 The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Aliases: www.sina.com.cn, jupiter.sina.com.cn The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Use curl - I http://www.sina.com.cn/ You can get the HTTP header information, The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

But the host obtained by curl is randomly obtained from the DNS server, The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

How can I view the HTTP information on a specified IP address? The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Use IP access and add the HTTP header "Host: www.sina. com. cn" with the - H parameter! The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

D:\>curl -I http://www.sina.com.cn/ The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

HTTP/1.1 200 OK The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Via: 1.0 nanjing75-162.HP08040106.sina.com.cn:80 (squid/2.6.STABLE13), 1.0 TRFW The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Connection: Keep-Alive The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Proxy-Connection: Keep-Alive The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Content-Length: 390160 The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Expires: Fri, 26 Sep 2008 05:22:11 GMT The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Date: Fri, 26 Sep 2008 05:21:11 GMT The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Content-Type: text/html The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

ETag: "5c2d7-457c5a8340d40" The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Server: Apache The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Last-Modified: Fri, 26 Sep 2008 05:19:09 GMT The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Accept-Ranges: bytes The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

X-Powered-By: mod_xlayout_jh/0.0.1vhs.markIII.remix The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Cache-Control: max-age=60 The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Vary: Accept-Encoding The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

X-Cache: HIT from nanjing75-162.HP08040106.sina.com.cn The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Resolve from DNS to 202.102.75.162 host The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

D:\>curl -I -H "Host:www.sina.com.cn" http://202.102.75.169/ The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

HTTP/1.1 200 OK The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Via: 1.0 nanjing75-169.HP08040113.sina.com.cn:80 (squid/2.6.STABLE13), 1.0 TRFW The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Connection: Keep-Alive The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Proxy-Connection: Keep-Alive The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Content-Length: 390160 The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Age: 3 The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Expires: Fri, 26 Sep 2008 05:21:07 GMT The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Date: Fri, 26 Sep 2008 05:20:07 GMT The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Content-Type: text/html The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

ETag: "5c2d7-457c5a8340d40" The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Server: Apache The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Last-Modified: Fri, 26 Sep 2008 05:19:09 GMT The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Accept-Ranges: bytes The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

X-Powered-By: mod_xlayout_jh/0.0.1vhs.markIII.remix The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Cache-Control: max-age=60 The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

Vary: Accept-Encoding The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

X-Cache: HIT from nanjing75-169.HP08040113.sina.com.cn The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

CURL can obtain the information of the specified IP host by setting the - H parameter and adding the HTTP header "Host: www.sina. com. cn". The article originates from the fallen fish- https://www.duoluodeyu.com/2482.html

 Baidu Cloud accelerates the increase of domain name prompt: this domain name has used the anti screening service, please change the main domain name to access again Website construction

Baidu Cloud accelerates the increase of domain name prompt: this domain name has used the anti screening service, please change the main domain name to access again

When Baidu Cloud accelerated to add a domain name, it was prompted at the top of the page that this domain name has used the anti screening service, please change the main domain name to access again. This is because your domain name has set anti blocking settings in Baidu Alliance, which also uses Baidu Cloud to accelerate data distribution. To resolve the above
 anonymous

Comment

Anonymous netizens Fill in information

 :?:  :razz:  :sad:  :evil:  :!:  :smile:  :oops:  :grin:  :eek:  :shock:  :???:  :cool:  :lol:  :mad:  :twisted:  :roll:  :wink:  :idea:  :arrow:  :neutral:  :cry:  :mrgreen:

determine