loading
loading
Network
Official IPinfo CLI for IP geolocation and ASN lookups.
overview
ipinfo is the official CLI for the IPinfo API. Pass one IP or a list and get geolocation, ASN, organization, and related ownership fields without a custom HTTP client.
Use --json or --csv for pipelines, --field to keep only columns such as country or org, and --nocache when a cached answer is not enough. A token file raises rate and field limits.
Run it after DNS or host discovery when you need to group assets by region or ASN. Trickest hosts ipinfo as a managed Network node over an IP file. Use asnmap to go the other way, from org to ranges.
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 map an organization to its ASNs and ranges, use asnmap. Resolve hostnames to IPs with a DNS tool before enrichment.
Maps organizations and ASNs to IP ranges. Discovery side; ipinfo enriches individual addresses.
Classifies whether an IP belongs to a CDN or cloud. Narrower than ipinfo full geolocation and ASN record.
Resolves hostnames to IPs. Run it before ipinfo to produce the addresses to enrich.
faq
related
Map an organization's network ranges from ASN data.
Validate public DNS resolvers against trusted baselines.
Parallel ICMP echo sweeps for CIDR ranges and host files.
Probe a domain list for working HTTP and HTTPS servers.
A fast and multi-purpose HTTP toolkit that runs multiple probers with reliable, high-throughput results.
Expand, aggregate, and slice CIDR ranges into host lists.
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.