Linux基础
1 前言
一个问题,一篇文章,一出故事。
最近发现百度推荐的IP地址归属地查询很不靠谱,要么要注册要么收费,于是整理此章节。
2 最佳实践
2.1 命令行的方法
curl ipinfo.io/8.8.8.8
以上查询范例,你需要把“8.8.8.8”替换为你需要查询的IP地址,一般可见如下显示,
{ "ip": "8.8.8.8", "hostname": "dns.google", "city": "Mountain View", "region": "California", "country": "US", "loc": "37.4056,-122.0775", "org": "AS15169 Google LLC", "postal": "94043", "timezone": "America/Los_Angeles", "readme": "https://ipinfo.io/missingauth", "anycast": true }
2.2 浏览器的方法
https://www.iplocation.net/
https://www.whatismyip.com/
https://ipinfo.io/
没有评论