public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Best whois client?
@ 2013-03-26 17:54 Stroller
  2013-03-26 18:57 ` Michael Mol
  0 siblings, 1 reply; 7+ messages in thread
From: Stroller @ 2013-03-26 17:54 UTC (permalink / raw
  To: Gentoo-User

Searching portage, I find there are quite a number of alternative whois clients. 

I think I have always used net-misc/whois in the past I now notice that a BSD whois is available, a "generic" and an advanced jwhois.

Presumably there are some differences between the functionality provided by these packages, can anyone tell me which is the "best", please?

I use whois a lot for looking up the abuse address of a host, by IP address. Primarily I'd like to get up-to-date and useful results from something `whois 1.2.3.4 | grep -i abuse`.

TIA for any help,

Stroller.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Best whois client?
  2013-03-26 17:54 [gentoo-user] Best whois client? Stroller
@ 2013-03-26 18:57 ` Michael Mol
  2013-03-27 10:08   ` Mick
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Mol @ 2013-03-26 18:57 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 764 bytes --]

On 03/26/2013 01:54 PM, Stroller wrote:
> Searching portage, I find there are quite a number of alternative whois clients. 
> 
> I think I have always used net-misc/whois in the past I now notice that a BSD whois is available, a "generic" and an advanced jwhois.
> 
> Presumably there are some differences between the functionality provided by these packages, can anyone tell me which is the "best", please?
> 
> I use whois a lot for looking up the abuse address of a host, by IP address. Primarily I'd like to get up-to-date and useful results from something `whois 1.2.3.4 | grep -i abuse`.
> 
> TIA for any help,
> 
> Stroller.
> 
> 

FWIW, I'm using jwhois. I don't remember why I settled on that one over
a different whois client, though.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 555 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Best whois client?
  2013-03-26 18:57 ` Michael Mol
@ 2013-03-27 10:08   ` Mick
  2013-03-27 23:37     ` Michael Orlitzky
  0 siblings, 1 reply; 7+ messages in thread
From: Mick @ 2013-03-27 10:08 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 1106 bytes --]

On Tuesday 26 Mar 2013 18:57:18 Michael Mol wrote:
> On 03/26/2013 01:54 PM, Stroller wrote:
> > Searching portage, I find there are quite a number of alternative whois
> > clients.
> > 
> > I think I have always used net-misc/whois in the past I now notice that a
> > BSD whois is available, a "generic" and an advanced jwhois.
> > 
> > Presumably there are some differences between the functionality provided
> > by these packages, can anyone tell me which is the "best", please?
> > 
> > I use whois a lot for looking up the abuse address of a host, by IP
> > address. Primarily I'd like to get up-to-date and useful results from
> > something `whois 1.2.3.4 | grep -i abuse`.
> > 
> > TIA for any help,
> > 
> > Stroller.
> 
> FWIW, I'm using jwhois. I don't remember why I settled on that one over
> a different whois client, though.

Like Stroller I've been using net-misc/whois for ever and it does what I want, 
but don't know what the other packages may be able to do/do better.  I would 
also be interested to find out why people prefer using these.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Best whois client?
  2013-03-27 10:08   ` Mick
@ 2013-03-27 23:37     ` Michael Orlitzky
  2013-03-28  4:08       ` Kevin Brandstatter
  2013-03-28 19:11       ` Stroller
  0 siblings, 2 replies; 7+ messages in thread
From: Michael Orlitzky @ 2013-03-27 23:37 UTC (permalink / raw
  To: gentoo-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/27/2013 06:08 AM, Mick wrote:
> 
> Like Stroller I've been using net-misc/whois for ever and it does
> what I want, but don't know what the other packages may be able to
> do/do better.  I would also be interested to find out why people
> prefer using these.
> 

They're all identical. The whois protocol is stupid simple; here's the
entire spec from the RFC:

   2.  Protocol Specification

   A WHOIS server listens on TCP port 43 for requests from WHOIS
   clients.  The WHOIS client makes a text request to the WHOIS server,
   then the WHOIS server replies with text content.  All requests are
   terminated with ASCII CR and then ASCII LF.  The response might
   contain more than one line of text, so the presence of ASCII CR or
   ASCII LF characters does not indicate the end of the response.  The
   WHOIS server closes its connection as soon as the output is finished.
   The closed TCP connection is the indication to the client that the
   response has been received.

Different data are located in different places, though. So if you're
looking up an IP address, you'll want one server. If you're looking up
an AS number, you'll want another. All the client does is run
heuristics to figure out who (and how) to query. Then it dumps it to a
terminal.

In short, there are a lot of whois clients for the same reason there
are a lot of telnet clients: it's something you can sit down and write
in a weekend.

Personally, I tried jwhois at first, but couldn't remember to type the
'j'. So now I use non-j whois.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQIcBAEBAgAGBQJRU4LDAAoJEBxJck0inpOiaeUQAKEf06tmlE2G3oaHcd6Vowgb
Xlkbp5o223eUHhGQ2wmtrxwKkShij8iIbq2HUTBboFXcLhj4SmbmgRBxcn1xtxu/
FcP1Icqu0ZHhKUJeB7C+5OYznTx+Rp79Bc325sYIhepP435bjMcAXQZLSiwJlmGX
xmW/KGZ16YUGtjMK7nNOHi49OirT8LBDW2Syx44ReF7T1i17Uqlw+/URyxdg+naY
ImDWPY8AD+uHRNNJYVBkimOlSCpA+N0cZ8jp1ehhxZw+I6G0Qmk9JW15l3e+knxQ
3LEspC55YhIbGwrA410XajBRDUPdUSrSo8KKjmYqYxJN9i7x4aHUGKs+jtB0lTFo
RWYYdQEwLielREbZZP3AvZLaSMSN6ekx9tu45u6oj2AiM5+28q237CQY1hQp1zC2
cZrqjOcJrDWygC6mpeIOyjt1bAI9XHrFArhRZfseW52bpz62+Zd2x9my6QP6dCug
f07iliWsayqsnzujv75kfOd4RReoCDhL/l+oDzEznRepO1Ds64WBx+pKcCwyb/bC
mNoyMcE4FKwlGKmTs4vM5e1gjpu//IntgGJCwb/+Su9HQF2IezMl2rlyMIsYWhlo
p0kYoCAGCxvKkJZbtqMzg6zhMWTAk9bD9OQVIP+Csez3BZk0dVDmEPPWUIh15yfM
RZAO1/8YSwXuNzRxezLT
=3GJk
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Best whois client?
  2013-03-27 23:37     ` Michael Orlitzky
@ 2013-03-28  4:08       ` Kevin Brandstatter
  2013-03-28 19:11       ` Stroller
  1 sibling, 0 replies; 7+ messages in thread
From: Kevin Brandstatter @ 2013-03-28  4:08 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1: Type: text/plain, Size: 1773 bytes --]

from eix, it says that jwhois can do "recursive queries"
whatever that means.

-Kevin

On 03/27/2013 06:37 PM, Michael Orlitzky wrote:
> On 03/27/2013 06:08 AM, Mick wrote:
>
> > Like Stroller I've been using net-misc/whois for ever and it does
> > what I want, but don't know what the other packages may be able to
> > do/do better.  I would also be interested to find out why people
> > prefer using these.
>
>
> They're all identical. The whois protocol is stupid simple; here's the
> entire spec from the RFC:
>
>    2.  Protocol Specification
>
>    A WHOIS server listens on TCP port 43 for requests from WHOIS
>    clients.  The WHOIS client makes a text request to the WHOIS server,
>    then the WHOIS server replies with text content.  All requests are
>    terminated with ASCII CR and then ASCII LF.  The response might
>    contain more than one line of text, so the presence of ASCII CR or
>    ASCII LF characters does not indicate the end of the response.  The
>    WHOIS server closes its connection as soon as the output is finished.
>    The closed TCP connection is the indication to the client that the
>    response has been received.
>
> Different data are located in different places, though. So if you're
> looking up an IP address, you'll want one server. If you're looking up
> an AS number, you'll want another. All the client does is run
> heuristics to figure out who (and how) to query. Then it dumps it to a
> terminal.
>
> In short, there are a lot of whois clients for the same reason there
> are a lot of telnet clients: it's something you can sit down and write
> in a weekend.
>
> Personally, I tried jwhois at first, but couldn't remember to type the
> 'j'. So now I use non-j whois.
>
>



[-- Attachment #1.2: Type: text/html, Size: 2540 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 555 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Best whois client?
  2013-03-27 23:37     ` Michael Orlitzky
  2013-03-28  4:08       ` Kevin Brandstatter
@ 2013-03-28 19:11       ` Stroller
  2013-03-29  0:14         ` Michael Orlitzky
  1 sibling, 1 reply; 7+ messages in thread
From: Stroller @ 2013-03-28 19:11 UTC (permalink / raw
  To: gentoo-user


On 27 March 2013, at 23:37, Michael Orlitzky wrote:
>> ...
>> Like Stroller I've been using net-misc/whois for ever and it does
>> what I want, but don't know what the other packages may be able to
>> do/do better.  I would also be interested to find out why people
>> prefer using these.
> 
> They're all identical. The whois protocol is stupid simple

The search I made before posting led me the wikipedia article which mentioned, for example, using thick and thin client models.

http://en.wikipedia.org/wiki/Whois#Thin_and_thick_lookups

One might assume, for example, that a thin client might tend to give more accurate and up-to-date information, but of course there's also the issue that the whois server for the domain might move. Thus the client might need to be updated in a timely manner, too.

I have a Gentoo box here that, embarrassingly, hasn't been updated in several years. It seems to sometimes give different results than my laptop does. 

Stroller.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] Best whois client?
  2013-03-28 19:11       ` Stroller
@ 2013-03-29  0:14         ` Michael Orlitzky
  0 siblings, 0 replies; 7+ messages in thread
From: Michael Orlitzky @ 2013-03-29  0:14 UTC (permalink / raw
  To: gentoo-user

On 03/28/2013 03:11 PM, Stroller wrote:

> The search I made before posting led me the wikipedia article which
> mentioned, for example, using thick and thin client models.
> 
> http://en.wikipedia.org/wiki/Whois#Thin_and_thick_lookups
> 
> One might assume, for example, that a thin client might tend to give
> more accurate and up-to-date information, but of course there's also
> the issue that the whois server for the domain might move. Thus the
> client might need to be updated in a timely manner, too.
> 

The thin model sort of works like DNS, except everything is unstructured
and totally made-up on the server side and guessed-at on the client
side. The clients are trying to parse the unstructured output, like you
would if you were trying to screen scrape a webpage. As of ten seconds
ago, this is what I get for a lookup of orlitzky.com:

  Domain Name: ORLITZKY.COM
  Registrar: GANDI SAS
  Whois Server: whois.gandi.net
  Referral URL: http://www.gandi.net
  ...

The "Whois Server:" for the domain is something like an NS record, where
the guy higher up points you at the next level down. If the whois server
for the domain changed, you wouldn't need to update the client -- you
could just ask the top-level server for it again. What *would* make you
update the client is if, say, that top-level server started outputting a
space between "Server" and ":".




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-03-29  0:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-26 17:54 [gentoo-user] Best whois client? Stroller
2013-03-26 18:57 ` Michael Mol
2013-03-27 10:08   ` Mick
2013-03-27 23:37     ` Michael Orlitzky
2013-03-28  4:08       ` Kevin Brandstatter
2013-03-28 19:11       ` Stroller
2013-03-29  0:14         ` Michael Orlitzky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox