{"id":37213010,"url":"https://github.com/czerwonk/asn_lookup","last_synced_at":"2026-01-15T00:32:13.804Z","repository":{"id":57600631,"uuid":"95901607","full_name":"czerwonk/asn_lookup","owner":"czerwonk","description":"Webservice providing prefixes announced by a specific ASN based on routing daemon information","archived":false,"fork":false,"pushed_at":"2018-04-09T09:06:57.000Z","size":54,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T08:16:26.755Z","etag":null,"topics":["asn","autonomous-systems","bird","golang","prefix","routing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/czerwonk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-30T15:30:48.000Z","updated_at":"2020-08-18T22:01:43.000Z","dependencies_parsed_at":"2022-09-16T18:40:28.455Z","dependency_job_id":null,"html_url":"https://github.com/czerwonk/asn_lookup","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/czerwonk/asn_lookup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czerwonk%2Fasn_lookup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czerwonk%2Fasn_lookup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czerwonk%2Fasn_lookup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czerwonk%2Fasn_lookup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/czerwonk","download_url":"https://codeload.github.com/czerwonk/asn_lookup/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czerwonk%2Fasn_lookup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","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":["asn","autonomous-systems","bird","golang","prefix","routing"],"created_at":"2026-01-15T00:32:13.292Z","updated_at":"2026-01-15T00:32:13.795Z","avatar_url":"https://github.com/czerwonk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# asn_lookup\n[![Build Status](https://travis-ci.org/czerwonk/asn_lookup.svg)](https://travis-ci.org/czerwonk/asn_lookup)\n[![Go Report Card](https://goreportcard.com/badge/github.com/czerwonk/asn_lookup)](https://goreportcard.com/report/github.com/czerwonk/asn_lookup)\n\nWebservice providing prefixes announced by a specific ASN based on routing daemon information\n\n## Default port\nBy default the service listens on port 10179 for incoming requests\n\n## Installation\n```bash\ngo get -u github.com/czerwonk/asn_lookup\n```\n\n## Running\nIn this exaple the socket is located at /usr/local/var/run/. This can vary in different setups:\n```bash\nasn_lookup -bird.socket=/usr/local/var/run/bird.ctl -bird6.socket=/usr/local/var/run/bird6.ctl\n```\n\n## Usage (Example)\n### Request by ASN\n```\ncurl http://[::]:10179/asn/15169\n```\n\nResponse:\n```xml\n\u003cAutonomousSystem\u003e\n\t\u003cASN\u003e15169\u003c/ASN\u003e\n\t\u003cIPv6\u003e2404:6800:4008::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:4009::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:400a::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2620:15c::/36\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:4001::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:4002::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:4003::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:4004::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2605:ef80:c0::/42\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:4005::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:4006::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:4007::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2620:0:1000::/40\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2800:3f0::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2600:1900::/28\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2605:ef80:80::/42\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:79e0::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:401c::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:401a::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:401b::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4018::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4019::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4016::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2800:3f0:4003::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2001:4860::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4017::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2800:3f0:4002::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4014::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2800:3f0:4001::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4015::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4012::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4013::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4010::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2800:3f0:4005::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4011::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2800:3f0:4004::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:400e::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:400f::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:400c::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:400d::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:400a::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:400b::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4008::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4009::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4006::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4007::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4004::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4005::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4002::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4003::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4001::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a03:ace0:100::/40\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a03:ace0::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4011::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4010::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4013::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4012::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2605:ef80:40::/42\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4015::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2605:ef80:140::/42\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4014::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4016::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4009::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4008::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:400b::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:400a::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:400d::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:400c::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:400f::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:400e::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4001::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4000::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4003::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2c0f:fb50:4002::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4002::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2c0f:fb50:4003::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4005::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4004::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4007::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4006::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2605:ef80::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2605:ef80:200::/42\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2c0f:fb50::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2401:fa00::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2620:120:e000::/40\u003c/IPv6\u003e\n\u003c/AutonomousSystem\u003e\n```\n\n### Request by IP\n```bash\ncurl http://[::]:10179/asn?ip=2001:4860:4860:0:0:0:0:8888\n```\n\nResponse:\n\n\n```xml\n\u003cAutonomousSystem\u003e\n\t\u003cASN\u003e15169\u003c/ASN\u003e\n\t\u003cIPv6\u003e2404:6800:4008::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:4009::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:400a::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2620:15c::/36\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:4001::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:4002::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:4003::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:4004::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2605:ef80:c0::/42\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:4005::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:4006::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800:4007::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2620:0:1000::/40\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2800:3f0::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2600:1900::/28\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2404:6800::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2605:ef80:80::/42\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:79e0::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:401c::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:401a::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:401b::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4018::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4019::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4016::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2800:3f0:4003::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2001:4860::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4017::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2800:3f0:4002::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4014::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2800:3f0:4001::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4015::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4012::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4013::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4010::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2800:3f0:4005::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4011::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2800:3f0:4004::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:400e::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:400f::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:400c::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:400d::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:400a::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:400b::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4008::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4009::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4006::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4007::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4004::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4005::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4002::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4003::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a00:1450:4001::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a03:ace0:100::/40\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2a03:ace0::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4011::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4010::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4013::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4012::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2605:ef80:40::/42\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4015::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2605:ef80:140::/42\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4014::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4016::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4009::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4008::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:400b::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:400a::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:400d::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:400c::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:400f::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:400e::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4001::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4000::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4003::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2c0f:fb50:4002::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4002::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2c0f:fb50:4003::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4005::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4004::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4007::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0:4006::/48\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2605:ef80::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2605:ef80:200::/42\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2c0f:fb50::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2607:f8b0::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2401:fa00::/32\u003c/IPv6\u003e\n\t\u003cIPv6\u003e2620:120:e000::/40\u003c/IPv6\u003e\n\u003c/AutonomousSystem\u003e\n```\n\n## Supported routing daemons\n* [Bird](http://bird.network.cz/)\n\n## License\n(c) Daniel Czerwonk, 2017. Licensed under [MIT](LICENSE) license.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczerwonk%2Fasn_lookup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczerwonk%2Fasn_lookup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczerwonk%2Fasn_lookup/lists"}