Code Monkey home page Code Monkey logo

nali-go's Introduction

Nali Go

给IP加上地理信息的命令行小工具

本项目支持IPv4(纯真IP数据库)和IPv6(ZX公网IPv6库)。

下载/运行 说明

Go语言程序, 可直接在发布页下载使用。

Query simple IP address:

➜ nali-go 2.3.6.7 1.1.2.5

2.3.6.7 [法国 Orange]
1.1.2.5 [福建省 电信]

➜ nali-go 2001:da8:2:1::2

2001:da8:2:1::2 [**北京市 教育网(CERNET2N)骨干网-清华大学-郑州大学]

Query IP addresses from stdin:

➜  dig github.io +short | nali-go

185.199.110.153 [美国 GitHub+Fastly节点]
185.199.111.153 [美国 GitHub+Fastly节点]
185.199.109.153 [美国 GitHub+Fastly节点]
185.199.108.153 [美国 GitHub+Fastly节点]

Use Nali CLI built-in tools shortcut:

➜ nali-go nslookup ip.sb

Server:         1.0.0.1 [美国 APNIC&CloudFlare 公共 DNS 服务器]
Address:        1.0.0.1 [美国 APNIC&CloudFlare 公共 DNS 服务器]#53

Non-authoritative answer:
Name:   ip.sb
Address: 119.9.95.61 [香港 Rackspace Hosting公司]

Update IP Database:

➜ nali-go update

Delete IP Database:

➜ nali-go delete

Check Version:

➜ nali-go version

NaLi-Go 
Source: https://github.com/Mikubill/nali-go
Git Commit Hash: 61e7869a02dc88c28093fac5a5aa35c06ef18333

编译 说明

安装 Go

wget https://dl.google.com/go/go1.13.6.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.13.6.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin:`pwd`/go/bin/

然后设置一下GOPROXY:

export GOPROXY=https://goproxy.cn

clone本项目,然后编译即可。

go get -u github.com/Mikubill/nali-go
go install github.com/Mikubill/nali-go

Related

nali-go's People

Contributors

mikubill avatar imxieke avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.