[root@a t]# wget
http://ip-api.com/json/184.71.55.21
--2016-02-25 04:19:34--
http://ip-api.com/json/184.71.55.21
Resolving ip-api.com... 162.250.144.215
Connecting to ip-api.com|162.250.144.215|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 299 [application/json]
Saving to: “184.71.55.21”
100%[===================================================================================================================================>] 299 --.-K/s in 0s
2016-02-25 04:19:35 (81.2 MB/s) - “184.71.55.21” saved [299/299]
[root@a t]# cat 184.71.55.21
{"as":"AS6327 Shaw Communications Inc.","city":"Calgary","country":"Canada","countryCode":"CA","isp":"Shaw Communications","lat":51.0419,"lon":-114.2,"org":"Shaw Communications","query":"184.71.55.21","region":"AB","regionName":"Alberta","status":"success","timezone":"America/Edmonton","zip":"T3H"}[root@a t]#
[root@a t]# wget
http://api.hostip.info/country.php?ip=184.71.55.21
--2016-02-25 04:20:48--
http://api.hostip.info/country.php?ip=184.71.55.21
Resolving api.hostip.info... failed: Name or service not known.
wget: unable to resolve host address “api.hostip.info”