Home page logo
/

nanog logo nanog mailing list archives

Re: WHOIS source?
From: Andrew Brown <twofsonet () graffiti com>
Date: Fri, 23 Jun 2000 17:43:00 -0400


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."



  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault