As my fellow monk already mentioned, MaxMind can be done using App::geoip:
$ geoip -w 103.2.106.33
GeoIP data for 103.2.106.33 - (hostname not found):
CIDR : 103.2.104.0/22
IP range : 103.2.104.0 - 103.2.107.255
Provider : Singapore Telecommunications Limited
City :
Country : SG Singapore
Continent : Asia
Timezone : Asia/Singapore
Location : 1.3667 / 103.8000 (50) 1°22'00.12" / 103°48'0
+0.00"
https://www.openstreetmap.org/#map=13/1.3667/103.8000
https://www.google.com/maps/place/@1.3667,103.8000,13z
Location : 52.2892 / 5.2603 52°17'21.13" / 5°15'3
+6.92"
Distance : ± 10467.30km
Whois information:
Name : Singapore Telecommunications Limited
ID : CO122-AP
Phone : +65 83180832
EMail : opsinfosvc@singtel.com
Abuse : opsinfosvc@singtel.com
Address : 7 Bedok South Road NCS Bedok
EU member : No
Satellite : No
Anon Proxy: No
$ geoip --json-pretty 103.2.106.33
[
{
"rep_continent" : "",
"map_urls" : [
"https://www.openstreetmap.org/#map=13/1.3667/103.8000",
"https://www.google.com/maps/place/@1.3667,103.8000,13z"
],
"longitude" : "103.8000",
"local_longitude" : "---",
"accuracy" : "50",
"longitude_dms" : "103°48'00.00\"",
"ip_to_n" : 1728211967,
"postal_code" : "",
"distance_unit" : "km",
"city_tz" : "Asia/Singapore",
"local_latidue_dms" : "---",
"ip" : "103.2.106.33",
"reg_continent" : "Asia",
"provider" : "Singapore Telecommunications Limited",
"local_latitude" : "---",
"reg_ctry_eu" : 0,
"hostname" : "(hostname not found)",
"latitude_dms" : "1°22'00.12\"",
"city" : "",
"local_longitude_dms" : "---",
"distance" : 10467.2979838297197,
"reg_ctry_iso" : "SG",
"rep_ctry_name" : "",
"cidr" : "103.2.104.0/22",
"ip_to" : "103.2.107.255",
"city_metro_code" : "",
"ip_from_n" : 1728210944,
"rep_ctry_iso" : "",
"city_name" : "",
"reg_ctry_name" : "Singapore",
"id" : 1880251,
"ip_from" : "103.2.104.0",
"latitude" : "1.3667",
"ip_n" : 1728211489,
"satellite" : 0,
"anon_proxy" : 0
}
]
Enjoy, Have FUN! H.Merijn
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
|
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
|
|