vak: (Default)
[personal profile] vak
Простой способ определять местонахождение IP адреса из командной строки. Делаем шелловскую функцию в файле ~/.bashrc.
function ipinfo {
curl -s https://ipinfo.io/$1
echo
}
Пробуем.
$ ipinfo 188.42.196.32
{
"ip": "188.42.196.32",
"hostname": "lurkmore.to",
"city": "Bissen",
"region": "Mersch",
"country": "LU",
"loc": "49.7873,6.0654",
"org": "AS7979 Servers.com, Inc.",
"postal": "L-7703",
"timezone": "Europe/Luxembourg",
"readme": "https://ipinfo.io/missingauth"
}
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org