Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kavirajk/ipl
Simple IP lookup tool.
https://github.com/kavirajk/ipl
golang ip ip2country iplookup tools
Last synced: 2 days ago
JSON representation
Simple IP lookup tool.
- Host: GitHub
- URL: https://github.com/kavirajk/ipl
- Owner: kavirajk
- License: mit
- Created: 2019-01-16T22:29:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-18T20:46:44.000Z (almost 6 years ago)
- Last Synced: 2024-06-20T10:18:22.728Z (5 months ago)
- Topics: golang, ip, ip2country, iplookup, tools
- Language: Go
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ipl - IP Lookup
Simple IP lookup tool built on top of [extreme-ip-lookup](https://extreme-ip-lookup.com) api.
Reads input from STDIN.## Install
```bash
go get -u -v github.com/kavirajk/ipl
```## Usage
```bash
$ echo "8.8.8.8" | ipl
8.8.8.8 United-States# multiple
$ echo "123.125.71.77 13.66.139.0" | ipl
123.125.71.77 China
13.66.139.0 United-States# ipv6
$ echo "2001:4860:4860::8888" | ipl
2001:4860:4860::8888 United-States# from files
$ cat ips.txt | ipl
123.125.71.77 China
13.66.139.0 United-States
195.154.122.121 France
195.154.123.109 France
207.46.13.12 United-States
207.46.13.176 United-States# verbose
$ cat ips.txt | ipl -v
13.66.139.0 United-States Microsoft-Azure
195.154.123.109 France Iliad-Entreprises
207.46.13.176 United-States Microsoft-bingbot
123.125.71.77 China Beijing China-Unicom-Beijing
207.46.13.12 United-States Microsoft-bingbot
195.154.122.121 France Iliad-Entreprises```
## LICENSE
MIT LicenseCopyright (c) 2019 Kaviraj