IPCountry/README.md

18 lines
763 B
Markdown
Raw Normal View History

2021-12-08 13:49:54 +01:00
# ipverse-rir-ip
2021-12-08 14:38:18 +01:00
Drop-in replacement for the country-based IP subnet lists currently available at http://ipverse.net based on Internet number resource usage data published by the Regional Internet Registries (RIR).
Probably shouldn't used for geo-locating since the RIR data is too generic.
2021-12-08 13:49:54 +01:00
2021-12-08 14:05:45 +01:00
This repository is updated daily.
2021-12-08 13:49:54 +01:00
## How to use
2021-12-08 14:05:45 +01:00
To download the delegated IPv4 subnets for Switzerland, try:
2021-12-08 13:49:54 +01:00
```$ curl https://raw.githubusercontent.com/ipverse/rir-ip/master/country/ch/ipv4-aggregated.txt```
2021-12-08 14:38:18 +01:00
To download the delegated IPv6 subnets for Switzerland, try:
```$ curl https://raw.githubusercontent.com/ipverse/rir-ip/master/country/ch/ipv6-aggregated.txt```
The subnet lists are available in JSON format as well, just replace the extension with .json.
2021-12-08 13:49:54 +01:00