loading
loading
Network
The command-line client for the IPinfo API: geolocation and network data for IP addresses.
overview
ipinfo is the official CLI for the IPinfo API: give it an IP or a list and it returns geolocation, ASN, and related ownership fields without writing your own HTTP client.
JSON and CSV modes fit pipelines; --field picks only the columns you need so a large IP list stays small when you only care about country or org.
Use it after port or host discovery when you need to group assets by region or ASN before scanning or reporting.
source github.com/ipinfo/cli
use cases
Run ipinfo over a file of IPs to attach geolocation, organization, ASN, and hostname to each one in a single pass.
Use ownership and ASN data to classify which addresses belong to the target versus a provider, focusing the next stage.
Choose --json to pipe into a downstream node or --csv to drop the enriched records straight into a spreadsheet.
Use --field to return the ASN and country alone, keeping the output lean for high-volume enrichment.
reference
| Name | Type | Flag | Description |
|---|---|---|---|
| csv | BOOLEAN | --csv | output CSV format |
| json | BOOLEAN | --json | output JSON format |
| field | STRING | --field | comma-sneparated list of fields to look up in the output |
| no-cache | BOOLEAN | --nocache | do not use the cache. |
| token-file | FILE | · | API token file |
| ip-addresses | FILE | · | List of IP addresses |
Showing key inputs. ipinfo exposes 6 inputs in total.
example
# ipinfo: geolocate a list of IPs as JSONipinfo 198.51.100.10 203.0.113.5 --json --field ip,country,org{"ip":"198.51.100.10","country":"US","org":"AS64500 Example Net"}{"ip":"203.0.113.5","country":"US","org":"AS64501 Example Lab"}{"ip":"192.0.2.8","country":"US","org":"AS64500 Example Net"}{"ip":"198.51.100.44","country":"DE","org":"AS64502 Example EU"}{"ip":"203.0.113.90","country":"GB","org":"AS64503 Example UK"}guidance
Use ipinfo to enrich IP addresses with geolocation, ownership, and ASN data. To go the other way, mapping an organization to its ASNs and ranges, use asnmap. To resolve hostnames to IPs first, run a DNS resolver before it.
Maps organizations and ASNs to IP ranges. The discovery side, where ipinfo enriches the individual addresses.
Classifies whether an IP belongs to a CDN or cloud. Narrower than ipinfo's full geolocation and ASN record.
Resolves hostnames to IPs. Run it before ipinfo to produce the addresses to enrich.
faq
related
Quickly map an organization's network ranges using ASN information.
Maximize your resolver count by combining the target's DNS servers with public resolvers.
Expand CIDR ranges into a list of IP addresses easily.
Expand CIDR ranges into a list of IP addresses easily, from a file.
Maintain a list of IPv4 DNS servers verified against baseline servers for accurate responses.
Patched dnsvalidator that keeps only IPv4 resolvers verified against baseline servers.
An IP list feeds ipinfo, which enriches each address with geolocation, ownership, and ASN data and writes the records as a queryable output.
Facts on this page come from the live Trickest tool library.