How do I use 'whois' on cygwin?

3

I've just installed the whois package on cygwin. Its description is GNU Whois, I'm assuming it refers to jwhois? I'm thinking the package is completely broken, but just in case I'm doing something wrong, here are some input and output results:

$ whois
Usage: whois [OPTION]... OBJECT...
[rest of help here]

$ whois superuser.com
connect: Connection timed out

$ whois --help
whois: unknown option -- -
Usage: whois [OPTION]... OBJECT...
[rest of help here]

$ whois --version
whois: unknown option -- -
Usage: whois [OPTION]... OBJECT...
[rest of help here]

So, is this package broken or am I not using it correctly?

Stijn

Posted 2014-01-10T15:56:17.817

Reputation: 610

1Your syntax looks good. Can you ping superuser.com? – Panther – 2014-01-10T16:16:10.370

@bodhi.zazen Yeah, that works fine. superuser.com was just an example, I get the same output for every domain. So I guess the package is broken. – Stijn – 2014-01-10T16:21:15.410

Answers

4

It looks to me like whois is failing to connect to the server to fetch the information needed. You can specify WHOIS_SERVER to use another server than the default one.

Try the following:

> env WHOIS_SERVER=whois.ripe.net whois superuser.com

or

> whois -h whois.ripe.net superuser.com

You can check if your internet connection can connect to a WHOIS service with any telnet client:

> telnet whois.ripe.net 43
Trying 193.0.6.135...
Connected to whois.ripe.net.
Escape character is '^]'.
% This is the RIPE Database query service.
% The objects are in RPSL format.
%
% The RIPE Database is subject to Terms and Conditions.
% See http://www.ripe.net/db/support/db-terms-conditions.pdf

user1811679

Posted 2014-01-10T15:56:17.817

Reputation: 56

How do you check for what is your existing whois server in CygWin? – Craig London – 2015-08-05T13:02:34.957

I had forgotten about this issue. Apparently port 43 is blocked at this company's network, telnet is unable to connect. – Stijn – 2014-03-25T13:23:50.770