ipsearch

command module
Version: v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2018 License: MIT Imports: 10 Imported by: 0

README

GitHub release Build Status Coverage Status Go Report Card

ipsearch

a CLI tool searching ip location based on api of https://www.ipip.net/

Installation

Use go get to install and update:

$ go get -u github.com/alastairruhm/ipsearch

Or without golang installed, you can download binary from release page, rename it with ipsearch and place it in $PATH directory.

Usage

From the commandline, ipsearch provides the functions as follows.By default, it prints its output to stdout.

example:

# IP
$ ipsearch 8.8.8.8
8.8.8.8 GOOGLE-GOOGLE-google.com

# domain
$ ipsearch github.io
lookup host: github.io
23.235.37.133 FASTLY-FASTLY-fastly.com
23.235.33.133 FASTLY-FASTLY-fastly.com

# sub-domain
$ ipsearch api.github.com
lookup host: api.github.com
192.30.253.117 美国-弗吉尼亚州-阿什本
192.30.253.116 美国-弗吉尼亚州-阿什本

# URL
$ ipsearch https://github.com/alastairruhm/ipsearch
lookup host: github.com
192.30.253.112 美国-弗吉尼亚州-阿什本
192.30.253.113 美国-弗吉尼亚州-阿什本

License

ipsearch is released under the MIT License.

Documentation

The Go Gopher

There is no documentation for this package.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL