Comment

Comment by coderholic

For another cli based IP address utility check out IPinfo.io's CLI: https://github.com/ipinfo/cli

It doesn't currently support calculations, but it does support conversion of start-end ranges to CIDRs (via `range2cidr` and `cidr2range`) and `grepip`. If you just want to get details for an IP it's gives a great overview, and supports bulk lookup too:

    $ ipinfo 8.8.8.8
    Core
    - IP           8.8.8.8
    - Anycast      true
    - Hostname     dns.google
    - City         Mountain View
    - Region       California
    - Country      United States (US)
    - Location     37.4056,-122.0775
    - Organization AS15169 Google LLC
    - Postal       94043
    - Timezone     America/Los_Angeles
    
    ASN
    - ID     AS15169
    - Name   Google LLC
    - Domain google.com
    - Route  8.8.8.0/24
    - Type   business
    
    Company
    - Name   Google LLC
    - Domain google.com
    - Type   business
    
    Privacy
    - VPN     false
    - Proxy   false
    - Tor     false
    - Relay   false
    - Hosting false
    - Service
    
    Abuse
    - Address US, CA, Mountain View, 1600 Amphitheatre     Parkway, 94043
    - Country United States (US)
    - Email   [email protected]
    - Name    Abuse
    - Network 8.8.8.0/24
    - Phone   +1-650-253-0000
parent coderholic 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton