On 7 Oct 2016, at 13:33, Sander Steffann <sander@steffann.nl> wrote:
Hi Ronald,
Op 7 okt. 2016, om 12:11 heeft Nick Hilliard <nick@inex.ie> het volgende geschreven:
The trick is to put what you want the whois server to see in quotation marks, and then put in a space at the beginning so that the local whois client won't think that you're passing cli arguments to it instead. I.e.
% whois -h whois.ripe.net " -BGi or AS3333"
Another way of doing the same thing but without the "space trick" is to tell the whois command line tool that what follows aren't option it should locally interpret:
whois -h whois.ripe.net -- "-BGi origin AS3333"
The "--" marks the end of the local options and the beginning of the options that are sent to the server. You still need quotes around the query you do though. Unfortunately there are some magic incantations when using these command line tools :(
There is a page on the RIPE NCC website that explains these matters, and other query options, in more detail: https://www.ripe.net/manage-ips-and-asns/db/support/querying-the-ripe-databa... Cheers, Alex