Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sarim/apnic-asn-prefix-list
Parses ASN list from apnic and sorts by country and ASN
https://github.com/sarim/apnic-asn-prefix-list
Last synced: 10 days ago
JSON representation
Parses ASN list from apnic and sorts by country and ASN
- Host: GitHub
- URL: https://github.com/sarim/apnic-asn-prefix-list
- Owner: sarim
- License: mpl-2.0
- Created: 2022-04-18T22:42:01.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-18T23:23:48.000Z (over 2 years ago)
- Last Synced: 2024-06-21T02:11:35.783Z (5 months ago)
- Language: Go
- Size: 3.44 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# apnic-asn-prefix-list
Parses ASN list from apnic and sorts by country and ASN# Usage
```bash
$ ./apnic-asn-prefix-list
-as string
provide an ASN to print its IP prefixes
-country string
provide a country code to print all ASNs' IP prefixes in this country
```For example lets try AS133938
```bash
$ ./apnic-asn-prefix-list -as AS133938
103.48.119.0/24
103.108.140.0/24
103.132.96.0/24
103.153.240.0/24
103.153.241.0/24
```You can also try with two letter country code to get all prefixes for that country. For example:
```bash
$ ./apnic-asn-prefix-list -country NZ
```Output omitted for obvious reasons :P