Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 License

Copyright (c) 2019 Kaviraj