Networking Forums

Networking Forums > Computer Networking > Linux Networking > WHOIS free server

Reply
Thread Tools Display Modes

WHOIS free server

 
 
AM
Guest
Posts: n/a

 
      06-01-2006, 06:48 PM
Hi guys,

does anyone know a free _whois_server_ to run on a linux box?
I looked for it on google but maybe I did a bad research.

Or is it not so useful for private use that no one developed it?

TIA,

Alex.
 
Reply With Quote
 
 
 
 
Chris Davies
Guest
Posts: n/a

 
      06-01-2006, 09:28 PM
AM <(E-Mail Removed)> wrote:
> does anyone know a free _whois_server_ to run on a linux box?
> I looked for it on google but maybe I did a bad research.


Essentially it's a program that accepts one or more words as a single
line of input and returns a corresponding chunk of text.

Using something like inetd (or xinetd) to manage the network socket
connections allows you to write a lightweigt whois server even in
shell script.

In inetd.conf:
whois stream tcp nowait nobody /usr/local/bin/whois-server ws

In the executable file /usr/local/bin/whois-server:
#!/bin/sh
#
if test 0 -eq $#
then
IFS= read LINE # Read from socket via inetd
else
LINE="$1" # Allows for 'whois-server <key>'
fi

# File corresponding to <key> is in /usr/local/whois-data/. Note
# that non-alphanumeric characters are stripped from the key
#
KEY=`echo "$LINE" | tr -cd '[:alnum:]'`
FILE="/usr/local/whois-data/$KEY"

if test -s "$FILE"
then
# Return the data corresponding to key back to the caller
#
cat "$FILE"
else
# File not found (or is zero length)
#
echo "Cannot find any matching record for << $KEY >>"
fi
exit 0

Once you define your requirements criteria (e.g. number of requests per
second, complexity of input parsing, size of lookup database) you can
decide how complex a solution you require.

Chris
 
Reply With Quote
 
Trygve Selmer
Guest
Posts: n/a

 
      06-01-2006, 10:13 PM
AM wrote:
> Hi guys,
>
> does anyone know a free _whois_server_ to run on a linux box?
> I looked for it on google but maybe I did a bad research.
>
> Or is it not so useful for private use that no one developed it?


You can find source code at <http://www.ripe.net/tools>, but why would
you need a private whois server anyway?

 
Reply With Quote
 
AM
Guest
Posts: n/a

 
      06-01-2006, 11:33 PM
Trygve Selmer wrote:
> AM wrote:
>
>> Hi guys,
>>
>> does anyone know a free _whois_server_ to run on a linux box?
>> I looked for it on google but maybe I did a bad research.
>>
>> Or is it not so useful for private use that no one developed it?

>
>
> You can find source code at <http://www.ripe.net/tools>, but why would
> you need a private whois server anyway?


Essentially whois is a service that provides, from my point of view, information about which network
an host belongs to. So when in our company we get in trouble we easily want to know who is that is
sending SPAM or viruses or whatever.
I agree that an spreadsheet can do the same thing but as we set up a DNS for internal use we thought
we could use such a tool like whois to solve the problem I spoke above.
Because of many programs available that are able to query WHOIS server we hopefully would use them
against our own whois server.

Thanks,

Alex.
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      06-02-2006, 12:08 AM
AM <(E-Mail Removed)> writes:

>Trygve Selmer wrote:
>> AM wrote:
>>
>>> Hi guys,
>>>
>>> does anyone know a free _whois_server_ to run on a linux box?
>>> I looked for it on google but maybe I did a bad research.
>>>
>>> Or is it not so useful for private use that no one developed it?

>>
>>
>> You can find source code at <http://www.ripe.net/tools>, but why would
>> you need a private whois server anyway?


>Essentially whois is a service that provides, from my point of view, information about which network
>an host belongs to. So when in our company we get in trouble we easily want to know who is that is


Yes, which network. But of course that is provided in your company by the
network IP You surely do not have so many networks that you cannot keep
thyem straight?

>sending SPAM or viruses or whatever.


Whois will not tell you It will just tell you the network the system is on.

>I agree that an spreadsheet can do the same thing but as we set up a DNS for internal use we thought
>we could use such a tool like whois to solve the problem I spoke above.
>Because of many programs available that are able to query WHOIS server we hopefully would use them
>against our own whois server.


 
Reply With Quote
 
Chris Davies
Guest
Posts: n/a

 
      06-02-2006, 08:59 AM
Unruh <unruh-(E-Mail Removed)> wrote:
> Whois will not tell you It will just tell you the network the system is on.


If you roll your own server it can tell you whatever you want it to.
Pretty much like "finger", really.

Chris
 
Reply With Quote
 
Andrew Gideon
Guest
Posts: n/a

 
      06-04-2006, 03:18 AM
On Fri, 02 Jun 2006 01:33:14 +0200, AM wrote:

> from my point of view,
> information about which network an host belongs to


Are you sure you're not looking for something like "dig -x"? Whois is
typically used to identify the owner of a network (or a domain, but that
seems not to be your area of interest).

In your case, you'd be the owner. Especially since you mentioned "host",
I'm thinking that perhaps all you want is to map from IP to hostname.
Dig does that with the -x option.

- Andrew

 
Reply With Quote
 
AM
Guest
Posts: n/a

 
      06-06-2006, 08:20 AM
Andrew Gideon wrote:

> On Fri, 02 Jun 2006 01:33:14 +0200, AM wrote:
>
> I'm thinking that perhaps all you want is to map from IP to hostname.
> Dig does that with the -x option.


Dig is not available on all OS and unfortunately not all members of our administration group use Linux/Unix :-(

Thank you

Alex.
 
Reply With Quote
 
Chris Davies
Guest
Posts: n/a

 
      06-06-2006, 10:20 AM
AM <(E-Mail Removed)> wrote:
> Dig is not available on all OS and unfortunately not all members of our administration group use Linux/Unix :-(


The older "nslookup" exists on (at least) unix/linux and windows
platforms.

nslookup <name_or_ip>

Chris
 
Reply With Quote
 
iforone
Guest
Posts: n/a

 
      06-07-2006, 10:08 PM

AM wrote:
> Hi guys,
>
> does anyone know a free _whois_server_ to run on a linux box?
> I looked for it on google but maybe I did a bad research.
>
> Or is it not so useful for private use that no one developed it?
>
> TIA,
>
> Alex.


Not sure if this is what you want, but 1st hit on googly using;
"Debian Linux whois server" as keywords...
<http://dan.drydog.com/swhoisd/>

Regards

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using whois commercially mukesh tiwari Linux Networking 2 09-16-2011 11:06 PM
Whois doesn't work - help Feranija Linux Networking 3 07-19-2010 05:56 AM
whois privacy for UK residents with .com domains? Unix Guru Broadband 7 03-11-2007 09:44 PM
SuSEFirewall2 blocks whois request Christoph Schwarz Linux Networking 3 04-26-2004 09:53 PM
(help) Whois database Francesco Sblendorio Linux Networking 5 07-03-2003 09:54 PM



1 2 3 4 5 6 7 8 9 10 11