Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lookup ASN and AS Name #70

Open
jamesharr opened this issue Jan 8, 2024 · 2 comments
Open

Lookup ASN and AS Name #70

jamesharr opened this issue Jan 8, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@jamesharr
Copy link

One thing that is pretty common in the network engineering field is to look up an IP's AS Number and/or looking up an ASN's name based on its number. I think it'd be a very useful addition to dns toys.

There's a lot of ways to implement this:

  • acting as a proxy for the CYMRU DNS service (with or without using an external dependency)
  • using HTTP API services
  • Implementing the lookup internally and pre-caching/refreshing the data periodically. I'm figuring that's probably a point best left for discussion.

Draft usage example:

# Lookup an ASN 
% dy 8.8.8.8.origin
% dy 2001:4860:4860::8844.origin
"15169"  # simplified form
"AS15169"  # alternative
"15169 | 8.8.8.0/24 | US | arin | 2023-12-28"  # Same output that CYMRU uses; has the most information in it
"AS15169 GOOGLE, US"  # Another acceptable output, cidr-report.org format


% dy 15619.asn
% dy as15619.asn
"GOOGLE, US"  # Simplest form
"AS15169 GOOGLE, US"  # cidr-report.org format
"15169 | US | arin | 2000-03-30 | GOOGLE, US"  # Same output that CYMRU uses; has the most information in it

References:

@knadh knadh added the enhancement New feature or request label Jan 9, 2024
@Shivraj0
Copy link

Shivraj0 commented Jul 31, 2024

Hello @knadh, Had this been taken up? If not, can i take this?

@knadh
Copy link
Owner

knadh commented Aug 1, 2024

Please feel free @Shivraj0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants