Thread-safety and the rwhois client library

William Leibzon william at completewhois.com
Wed Dec 22 14:38:29 EST 2004


On Wed, 22 Dec 2004, David Fix wrote:

> Hi there.  :)  I was wondering if anyone knew if the rwhois client 
> library is thread-safe.  I'd like to do some multi-threading with it, 
> but I'm not sure if it's safe to do or not.  :)

1. Are you saying you expect to use it rwhois so much and so often that
    one thread is just not enough? For what?????

2. You can always use  whois client library - after all rwhois is just
    normal whois with additional processing to understand record format,
    and relation of one type of record to another and find what the db
    schema is. But in reality normal whois client will give you the
    expected output in regular text form that you can alredy use
    depending on what you need it for.

    For example if you do 'whois -h completewhois.com idnic.net.id'
    (see below) you'd think we're doing real rwhois processing, but in
    reality its normal whois with some simple regex code to get rid of
    rwhois class names (i.e. "domain:") for nicer user output.

[DOMAIN whois information for IDNIC.NET.ID ]
    Domain Name: IDNIC.NET.ID
    Namespace: ICANN Country Code Top Level Domain - http://www.icann.org
    TLD Info: Indonesia - http://www.iana.org/root-whois/id.htm
    Registry: IDNIC - http://www.idnic.net.id
    Registrar: IDNIC - http://www.idnic.net.id
    Whois Server: whois.idnic.net.id
    Name Server[whois+dns with ip] MUARA.IDNIC.NET.ID 202.153.134.227
    Name Server[whois+dns with ip] NS1.ID 202.155.30.227
    Name Server[from dns, whois+dns ip]: ALLIANCE.GLOBALNETLINK.COM 208.185.70.11
[whois.idnic.net.id]
Class-Name: domain
ID: idnic1-DOM-IDNIC
Auth-Area: id
Guardian;I: idnic1-GRD-IDNIC
Domain-Name: idnic.net.id
Primary-Server;I: muara1-HST-IDNIC
Secondary-Server;I: ns128-HST-IDNIC
Organization: ID DOMREG
Admin-Contact;I: br4-IDNIC
Tech-Contact;I: ho18-IDNIC
Billing-Contact;I: br4-IDNIC
Created: 19961217
Updated-By: hostmaster at idnic.net.id

Class-Name:contact
ID:br4-idnic
Auth-Area:id
Name:Budi Rahardjo
Email:budi at alliance.globalnetlink.com
Type:I
Phone:+62-22-250-6280
Fax:+62-22-250-8763
Organization:PPAU Mikroelektronika ITB
Occupation;I:Project Manager
Address;I:Jln. Ganesha 10, Bandung
Updated-By:hostmaster at idnic.net.id
...

While strict rwhois processing would have given:

Class-Name                    domain
ID                            idnic1-DOM-IDNIC
Auth-Area                     id
Guardian                      idnic1-GRD-IDNIC
Domain-Name                   idnic.net.id
Primary-Server                muara1-HST-IDNIC
Secondary-Server              ns128-HST-IDNIC
Organization                  ID DOMREG
Admin-Contact                 br4-IDNIC
Tech-Contact                  ho18-IDNIC
Billing-Contact               br4-IDNIC
Created                       19961217
Updated-By                    hostmaster at idnic.net.id

---
William Leibzon
   mailto: william at completewhois.com
Anti-Spam and Email Security Research Worksite:
   http://www.elan.net/~william/emailsecurity/
Whois & DNS Network Investigation Tools:
   http://www.completewhois.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 1118 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.verisignlabs.com/pipermail/rwhois/attachments/20041222/b8417b60/smime.bin


More information about the Rwhois mailing list