We help IT Professionals succeed at work.
Get Started

ASN asnumber looup

404 Views
Last Modified: 2015-03-05
I am trying to find a way of looking up the owner of an ASN number using a script. I have no need for bulk usage, I simply want to do a query or two now and then.

The trick is that I do not have whois on the device which is running my code but I do have netcat, traceroute, ping, mtr, your basic tools.

I know there are sites which provide this info but I have not found any way of doing it yet.

This site, whois.cymru.com seems to offer a way of connecting to it, sending a -w with an ASN to get the results back. However, I've not found the correct syntax and cannot confirm if I could use netcat only.

I am looking for a bash script which would accomplish this.

Thanks.
Comment
Watch Question
CERTIFIED EXPERT
Top Expert 2014
Commented:
This problem has been solved!
Unlock 1 Answer and 14 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE