Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: NANOG: users

Anyone have a layman's guide to writing an rwhois daemon?

 

 

NANOG users RSS feed   Index | Next | Previous | View Threaded


lstewart at superb

May 7, 2012, 4:34 PM

Post #1 of 3 (189 views)
Permalink
Anyone have a layman's guide to writing an rwhois daemon?

Hi All,

I just wrote a perl daemon that seems to be a working rwhois server but the
RFC is quite difficult to read for me. When talking about the protocol it
mentions a bunch of requirements and describes them quite strangely
(see rfc2167 section 3.1.9). Is there a layman's guide around somewhere or
can anyone lend some advice here? Is what I wrote acting like a real
rwhois server - at least partially?

$ whois -h sirt.hopone.net -p rwhois 66.235.162.21
%rwhois V-1.5:00ffff:00 rwhois.hopone.net (HopOne Internet Corp)
servername:sls-cf7p17
domain:rac13a.com
ipaddress:66.235.162.21
ipaddress:66.235.166.15
ipaddress:66.235.179.110
abusename:Abuse Department
abusephone:206-438-5909
abusemail:abuse [at] hopone
%ok

(If you try running the command above it may or may not be running and may
not succeed)

If anyone knows where to get an rwhois daemon that has hooks for looking up
the data in an external database (not a .cdb database or flat file) I'd
appreciate it a great deal. I won't want to waste too much time on this if
I can help it but I want a functioning rwhois server. Our rwhoisd at
rwhois.hopone.net has been broken for a while and for the life of me I
cannot figure out what's wrong with the data formatting it's using. I
attempted to join the mailing list for ISC's rwhoisd daemon but it's dead
(no volume on the list).

--
Landon Stewart <LStewart [at] Superb>
Sr. Administrator
Systems Engineering
Superb Internet Corp - 888-354-6128 x 4199
Web hosting and more "Ahead of the Rest": http://www.superbhosting.net


jackson.tim at gmail

May 7, 2012, 4:44 PM

Post #2 of 3 (183 views)
Permalink
Re: Anyone have a layman's guide to writing an rwhois daemon? [In reply to]

Dunno how much help it'll be but here's mine.. It's basic and probably
non-RFC compliant, but it might help.

crapbox.idge.net/~tjackson/rwhois.tar.gz
On May 7, 2012 6:35 PM, "Landon Stewart" <lstewart [at] superb> wrote:

> Hi All,
>
> I just wrote a perl daemon that seems to be a working rwhois server but the
> RFC is quite difficult to read for me. When talking about the protocol it
> mentions a bunch of requirements and describes them quite strangely
> (see rfc2167 section 3.1.9). Is there a layman's guide around somewhere or
> can anyone lend some advice here? Is what I wrote acting like a real
> rwhois server - at least partially?
>
> $ whois -h sirt.hopone.net -p rwhois 66.235.162.21
> %rwhois V-1.5:00ffff:00 rwhois.hopone.net (HopOne Internet Corp)
> servername:sls-cf7p17
> domain:rac13a.com
> ipaddress:66.235.162.21
> ipaddress:66.235.166.15
> ipaddress:66.235.179.110
> abusename:Abuse Department
> abusephone:206-438-5909
> abusemail:abuse [at] hopone
> %ok
>
> (If you try running the command above it may or may not be running and may
> not succeed)
>
> If anyone knows where to get an rwhois daemon that has hooks for looking up
> the data in an external database (not a .cdb database or flat file) I'd
> appreciate it a great deal. I won't want to waste too much time on this if
> I can help it but I want a functioning rwhois server. Our rwhoisd at
> rwhois.hopone.net has been broken for a while and for the life of me I
> cannot figure out what's wrong with the data formatting it's using. I
> attempted to join the mailing list for ISC's rwhoisd daemon but it's dead
> (no volume on the list).
>
> --
> Landon Stewart <LStewart [at] Superb>
> Sr. Administrator
> Systems Engineering
> Superb Internet Corp - 888-354-6128 x 4199
> Web hosting and more "Ahead of the Rest": http://www.superbhosting.net
>


lstewart at superb

May 8, 2012, 3:02 PM

Post #3 of 3 (176 views)
Permalink
Re: Anyone have a layman's guide to writing an rwhois daemon? [In reply to]

Hey Tim, thanks a lot. This did help. I saw how you dealt with some
queries and stuff. Thanks again!

On 7 May 2012 16:44, Tim Jackson <jackson.tim [at] gmail> wrote:

> Dunno how much help it'll be but here's mine.. It's basic and probably
> non-RFC compliant, but it might help.
>
> crapbox.idge.net/~tjackson/rwhois.tar.gz
> On May 7, 2012 6:35 PM, "Landon Stewart" <lstewart [at] superb> wrote:
>
>> Hi All,
>>
>> I just wrote a perl daemon that seems to be a working rwhois server but
>> the
>> RFC is quite difficult to read for me. When talking about the protocol it
>> mentions a bunch of requirements and describes them quite strangely
>> (see rfc2167 section 3.1.9). Is there a layman's guide around somewhere
>> or
>> can anyone lend some advice here? Is what I wrote acting like a real
>> rwhois server - at least partially?
>>
>> $ whois -h sirt.hopone.net -p rwhois 66.235.162.21
>> %rwhois V-1.5:00ffff:00 rwhois.hopone.net (HopOne Internet Corp)
>> servername:sls-cf7p17
>> domain:rac13a.com
>> ipaddress:66.235.162.21
>> ipaddress:66.235.166.15
>> ipaddress:66.235.179.110
>> abusename:Abuse Department
>> abusephone:206-438-5909
>> abusemail:abuse [at] hopone
>> %ok
>>
>> (If you try running the command above it may or may not be running and may
>> not succeed)
>>
>> If anyone knows where to get an rwhois daemon that has hooks for looking
>> up
>> the data in an external database (not a .cdb database or flat file) I'd
>> appreciate it a great deal. I won't want to waste too much time on this
>> if
>> I can help it but I want a functioning rwhois server. Our rwhoisd at
>> rwhois.hopone.net has been broken for a while and for the life of me I
>> cannot figure out what's wrong with the data formatting it's using. I
>> attempted to join the mailing list for ISC's rwhoisd daemon but it's dead
>> (no volume on the list).
>>
>> --
>> Landon Stewart <LStewart [at] Superb>
>> Sr. Administrator
>> Systems Engineering
>> Superb Internet Corp - 888-354-6128 x 4199
>> Web hosting and more "Ahead of the Rest": http://www.superbhosting.net
>>
>


--
Landon Stewart <LStewart [at] Superb>
Sr. Administrator
Systems Engineering
Superb Internet Corp - 888-354-6128 x 4199
Web hosting and more "Ahead of the Rest": http://www.superbhosting.net

NANOG users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.