From what I can see
@Rachmani3652 isn’t having problems installing curl, it seems he is using curl to access the API for a website called ipinfo.io, in order to look up information about a server using its IP address.
But he doesn’t seem to be able to interpret/understand the information it’s sending back.
However - as the OP is running Kali - if curl is NOT already installed, it should just be a case of running
apt install curl
if running as root. Or
sudo apt install curl
if running as an ordinary user. I seem to recall reading that the newer versions of Kali no longer run as root by default.
Anyway - assuming that installing curl is not the problem, lets try using ipinfo.io's API with curl. I took a quick look at the documentation on the ipinfo.io website:
Welcome to our IPinfo developer resource - the quickest and easiest way to get started with IPinfo is to use one of our official libraries.
ipinfo.io
From looking at that, it looks like all that's needed is:
curl ipinfo.io/{server IP}
It also mentions providing an authentication key. But I don't have an API key for ipinfo.io, and I'm not signing up for one for the sake of providing an answer here. So I'll simply pass the IP without an auth token.
I know that the IPV4 for one of OpenDNS's nameservers is 208.67.222.222.
So let's look up some information about that IP using the following curl command:
Bash:
curl ipinfo.io/208.67.222.222
Using the above, I get the following response:
Code:
{
"ip": "208.67.222.222",
"hostname": "resolver1.opendns.com",
"city": "Cincinnati",
"region": "Ohio",
"country": "US",
"loc": "39.1271,-84.5144",
"org": "AS36692 Cisco OpenDNS, LLC",
"postal": "45219",
"timezone": "America/New_York",
"readme": "https://ipinfo.io/missingauth"
}
Hmm, seems perfectly fine! Lets try the IPV6 address of one of OpenDNS's servers - 2620:119:35::35:
Bash:
curl ipinfo.io/2620:119:35::35
Which yields:
Code:
{
"ip": "2620:119:35::35",
"city": "San Francisco",
"region": "California",
"country": "US",
"loc": "37.7621,-122.3971",
"org": "AS36692 Cisco OpenDNS, LLC",
"postal": "94107",
"timezone": "America/Los_Angeles",
"readme": "https://ipinfo.io/missingauth"
}
So where is the problem?! It all seems pretty straightforward to me!
File this one under PICNIC. (Problem In Chair, Not In Computer) ha ha!