[29457] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: WHOIS source?

daemon@ATHENA.MIT.EDU (Andrew Brown)
Fri Jun 23 17:45:24 2000

Date: Fri, 23 Jun 2000 17:43:00 -0400
From: Andrew Brown <twofsonet@graffiti.com>
To: Steve Sobol <sjsobol@NorthShoreTechnologies.net>
Cc: nanog@merit.edu
Message-ID: <20000623174300.A23148@noc.untraceable.net>
Reply-To: Andrew Brown <atatat@atatdot.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3953C977.5ED225DE@NorthShoreTechnologies.net>; from sjsobol@NorthShoreTechnologies.net on Fri, Jun 23, 2000 at 04:32:55PM -0400
Errors-To: owner-nanog-outgoing@merit.edu


>Can someone point me to the source for a whois server... I don't know
>why, but I haven't been able to find any sources....

it seems to me that in the complete and utter absence of a formal
protocol, a sample implementation might something like:

   #!/usr/local/bin/perl
   chomp($query=<>);
   dbmopen(%whois,"whoisdatabase",undef);
   $answer=$whois{$query}||"what's that?\r\n";
   dbmclose(%whois);
   print($answer);

run from inetd on port 43.

feel free to add your own output format and/or information copyright
warning.  none of the whois servers out there right now seem to adhere
to any sort of standard and the output seems to be of the "just send
eight" variety.

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."


home help back first fref pref prev next nref lref last post