Skip to main content

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.

FilterDescriptionValue formatNote
--filter-countryFilter results by country.ISO 3166-1 alpha-2 codesComma-separated values use OR matching. Case-insensitive.
--filter-regionFilter results by region.ISO 3166-2 subdivision codesComma-separated values use OR matching. Case-insensitive.
--filter-cityFilter results by city (use quotes for names with spaces, e.g. "New York").City namesComma-separated values use OR matching. Case-insensitive.
--filter-zipFilter results by ZIP.ZIP codesComma-separated values use OR matching. Case-insensitive.

Separate filter flags use AND matching.