0

There are some websites like ipinfo.io that give clients some information for an IP address like location, ASN and etc. How can I obtain mentioned information without third party tools in Linux?

  • 1
    Possible duplicate of [How to get a computer's internet (IP address) location using command line?](https://superuser.com/questions/1065263/how-to-get-a-computers-internet-ip-address-location-using-command-line) – harrymc Oct 30 '19 at 20:13
  • The answers for [that question](https://superuser.com/questions/1065263/how-to-get-a-computers-internet-ip-address-location-using-command-line) are using third party tools – Alireza Alipour Oct 30 '19 at 20:20
  • Curl is a third party tool? – harrymc Oct 30 '19 at 20:23
  • `curl` is not a third party tool, but [ipinfo.io](https://ipinfo.io) is a third party tool. – Alireza Alipour Oct 30 '19 at 20:27
  • There is no way that you can download locally the entire database used by `ipinfo.io`, or if you do then to use it. You need an external repository. – harrymc Oct 30 '19 at 20:32
  • Unless you construct a local DB of all locations of all IP addresses (and maintain it...) you'll have to use 3rd party servers for this. For the purely network information, `whois` and `dig` will help. – xenoid Oct 30 '19 at 20:49
  • Thank @xenoid very much, using `whois` is the answer that I was looking for it, if you can answer this question by yourself to make this question an answered question. – Alireza Alipour Oct 30 '19 at 21:06

1 Answers1

1

Unless you construct a local DB of all locations of all IP addresses (and maintain it...) you'll have to use 3rd party servers for this.

For the purely network information, whois and dig will help.

xenoid
  • 9,782
  • 4
  • 20
  • 31