{"id":37910364,"url":"https://github.com/simcap/rir","last_synced_at":"2026-01-16T17:18:54.970Z","repository":{"id":27031495,"uuid":"30496403","full_name":"simcap/rir","owner":"simcap","description":"Regional Internet Registry (RIR) file parser \u0026 CLI in Go","archived":false,"fork":false,"pushed_at":"2022-01-18T09:25:08.000Z","size":48,"stargazers_count":13,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-19T02:01:09.981Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simcap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-08T16:03:49.000Z","updated_at":"2024-06-04T17:26:41.000Z","dependencies_parsed_at":"2022-08-03T05:30:07.111Z","dependency_job_id":null,"html_url":"https://github.com/simcap/rir","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simcap/rir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simcap%2Frir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simcap%2Frir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simcap%2Frir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simcap%2Frir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simcap","download_url":"https://codeload.github.com/simcap/rir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simcap%2Frir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28480098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-16T17:18:54.316Z","updated_at":"2026-01-16T17:18:54.965Z","avatar_url":"https://github.com/simcap.png","language":"Go","readme":"# RIR files explorer\n\nGo (golang) package to parse RIR files with command line utility\n\nRIR stands for Regional Internet Registry. RIR files are used to exchange statistics around asn, ipv4 \u0026 ipv6. For more details on RIR files see [here](http://www.apnic.net/publications/media-library/documents/resource-guidelines/rir-statistics-exchange-format#FileHeader)\n\n## Install\n\n  1. Install Go beforehand\n  2. Run `go get github.com/simcap/rir`\n\nYou should now have an executable `rir` in your path\n\n## Test\n\nRun `go test -v`\n\n## Command line usage\n\nGet the basic usage\n\n    $ rir\n    Usage of ./rir:\n      -c=\"\": 2 letters string of the country (ISO 3166)\n      -n=false: given country return possible hosts count (exclude network and broadcast addresses)\n      -q=\"\": ip address to which to resolve country\n\nExplore ip blocks given a country\n\n    $ rir -c FR\n    2.0.0.0/12\n    5.10.128.0/21\n    ...\n    213.108.232.0/21\n    213.111.0.0/18\n    217.77.224.0/20\n\nGet the country and IP net for an given IP\n\n    $ rir -q 194.146.24.104\n    FR 194.146.24.0/23\n\nGet the number of possible hosts for country (exclude network \u0026 broadcast addresses)\n\n    $ ./rir -c US -n\n    1601581670\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimcap%2Frir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimcap%2Frir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimcap%2Frir/lists"}