Digital Ocean
The cipr do command retrieves Digital Ocean IP ranges. With mini verbosity, each result contains the CIDR, country, region, city, and ZIP code.
CLI command
cipr do --ipv6 --filter-country NL --filter-city Amsterdam --verbose-mode mini
Output
...
2a03:b0c0:0:1047::/64,NL,NL-NH,Amsterdam,1098 XH
2a03:b0c0:0:1048::/64,NL,NL-NH,Amsterdam,1098 XH
2a03:b0c0:0:1049::/64,NL,NL-NH,Amsterdam,1098 XH
...
Data Format
CIDR | Country | Region | City | ZIP
Filter values
Country and region values use ISO 3166 codes.
| Filter | Description | Value format | Note |
|---|---|---|---|
--filter-country | Filter results by country. | ISO 3166-1 alpha-2 codes | Comma-separated values use OR matching. Case-insensitive. |
--filter-region | Filter results by region. | ISO 3166-2 subdivision codes | Comma-separated values use OR matching. Case-insensitive. |
--filter-city | Filter results by city (use quotes for names with spaces, e.g. "New York"). | City names | Comma-separated values use OR matching. Case-insensitive. |
--filter-zip | Filter results by ZIP. | ZIP codes | Comma-separated values use OR matching. Case-insensitive. |
Separate filter flags use AND matching.