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.