Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion popular whois server response not being parsed

Received: by 10.204.143.143 with SMTP id v15mr2970948bku.8.1335952989496;
        Wed, 02 May 2012 03:03:09 -0700 (PDT)
X-BeenThere: ruby-whois@googlegroups.com
Received: by 10.204.129.85 with SMTP id n21ls215497bks.6.gmail; Wed, 02 May
 2012 03:03:08 -0700 (PDT)
Received: by 10.204.157.134 with SMTP id b6mr2137136bkx.5.1335952987934;
        Wed, 02 May 2012 03:03:07 -0700 (PDT)
Received: by 10.204.157.134 with SMTP id b6mr2137135bkx.5.1335952987912;
        Wed, 02 May 2012 03:03:07 -0700 (PDT)
Return-Path: <wep...@gmail.com>
Received: from mail-bk0-f51.google.com (mail-bk0-f51.google.com [209.85.214.51])
        by gmr-mx.google.com with ESMTPS id p5si1701628bks.1.2012.05.02.03.03.07
        (version=TLSv1/SSLv3 cipher=OTHER);
        Wed, 02 May 2012 03:03:07 -0700 (PDT)
Received-SPF: pass (google.com: domain of wep...@gmail.com designates 209.85.214.51 as permitted sender) client-ip=209.85.214.51;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of wep...@gmail.com designates 209.85.214.51 as permitted sender) smtp.mail=wep...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-bk0-f51.google.com with SMTP id jg15so310202bkc.10
        for <ruby-whois@googlegroups.com>; Wed, 02 May 2012 03:03:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:sender:in-reply-to:references:from:date
         :x-google-sender-auth:message-id:subject:to:content-type;
        bh=zEEs59+a1qCkbUZ0DRcVwUH0lLOL3bmxStXHPxq6SPI=;
        b=ZWgO7xgt4eo+jwPnVyGLoLHuU/26vlR+ik5Ki5HEeq2j6p5YWGYWiydy96xUM3Ygxz
         nFI+YG9Tiv94CjhqWrK5TreaZ18cNn3WxR6TZWq0GBcPKGUQbmlarAFY7V0QLMgf2Atn
         joW39g5bxGoTCELOIjtntPPUc4LfP96c1WTlRNY2n4+X1c2W8+QN7UlUvI1rFcONJn4m
         jFTlBren6HkwGYgVI6UBiDfX/JIdjHjDPPGqskQmVkgiAc9Re/+61QNpK9NsOJCeqyJi
         beIn4J2LFTsLAOcSwHuBsPFz7n9Fj+p1ygOxIl2Z+XPj8MOYS+LITCq1D7EhMjJ4c/FK
         zdDg==
Received: by 10.204.156.4 with SMTP id u4mr275592bkw.6.1335952987560; Wed, 02
 May 2012 03:03:07 -0700 (PDT)
MIME-Version: 1.0
Sender: wep...@gmail.com
Received: by 10.204.113.201 with HTTP; Wed, 2 May 2012 03:02:27 -0700 (PDT)
In-Reply-To: <7a938905-ca77-4695-a9b6-9f4275dd1...@v22g2000yqm.googlegroups.com>
References: <7a938905-ca77-4695-a9b6-9f4275dd1...@v22g2000yqm.googlegroups.com>
From: Simone Carletti <wep...@weppos.net>
Date: Wed, 2 May 2012 12:02:27 +0200
Message-ID: <CAAdVROnRXPnd5udCodAuYL41sQH9yLhUavd7AzfV95ACgLd...@mail.gmail.com>
Subject: Re: popular whois server response not being parsed
To: ruby-whois@googlegroups.com
Content-Type: multipart/alternative; boundary=0015175cfa32429aa204bf0acba5

--0015175cfa32429aa204bf0acba5
Content-Type: text/plain; charset=ISO-8859-1

The Whois server for twitter.com is verisign, then melbourne.
The simplest way is the leave the library handing the full whois process.

r = Whois.query "twitter.com"
r.expires_on
# => 2019-01-21 00:00:00 +0100



On Wed, May 2, 2012 at 9:35 AM, Craayzie <flesh...@gmail.com> wrote:

> I just started playing with this library and it looks really
> fantastic!
>
> One of the first lookups I tried was for 'twitter.com'. The whois
> server for twiter.com is @ whois.melbourneit.com.
>
> When I attempt to query it using the Server class, the response isn't
> parsed/formatted.
>
> server = Whois::Server.factory(:tld, ".", "whois.melbourneit.com")
> r = server.query('twitter.com')
>
> How would I go about getting a parsed response for twitter.com such
> that I can then access different parts of it?
>
> e.g. r.registrant_contacts
>
> Thanks in advance!




-- 
Simone Carletti
Application Developer

Site & Blog: http://www.simonecarletti.com
Email: wep...@weppos.net
LinkedIn: http://linkedin.com/in/weppos
Skype: weppos

--0015175cfa32429aa204bf0acba5
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

The Whois server for <a href=3D"http://twitter.com">twitter.com</a> is veri=
sign, then melbourne.<div>The simplest way is the leave the library handing=
 the full whois process.</div><div><br></div><div><div>r =3D Whois.query &q=
uot;<a href=3D"http://twitter.com">twitter.com</a>&quot;</div>

<div>r.expires_on</div><div># =3D&gt; 2019-01-21 00:00:00 +0100=A0</div></d=
iv><div><br></div><div><br><br><div class=3D"gmail_quote">On Wed, May 2, 20=
12 at 9:35 AM, Craayzie <span dir=3D"ltr">&lt;<a href=3D"mailto:fleshins@gm=
ail.com" target=3D"_blank">flesh...@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">I just started playing with this library and=
 it looks really<br>
fantastic!<br>
<br>
One of the first lookups I tried was for &#39;<a href=3D"http://twitter.com=
" target=3D"_blank">twitter.com</a>&#39;. The whois<br>
server for <a href=3D"http://twiter.com" target=3D"_blank">twiter.com</a> i=
s @ <a href=3D"http://whois.melbourneit.com" target=3D"_blank">whois.melbou=
rneit.com</a>.<br>
<br>
When I attempt to query it using the Server class, the response isn&#39;t<b=
r>
parsed/formatted.<br>
<br>
server =3D Whois::Server.factory(:tld, &quot;.&quot;, &quot;<a href=3D"http=
://whois.melbourneit.com" target=3D"_blank">whois.melbourneit.com</a>&quot;=
)<br>
r =3D server.query(&#39;<a href=3D"http://twitter.com" target=3D"_blank">tw=
itter.com</a>&#39;)<br>
<br>
How would I go about getting a parsed response for <a href=3D"http://twitte=
r.com" target=3D"_blank">twitter.com</a> such<br>
that I can then access different parts of it?<br>
<br>
e.g. r.registrant_contacts<br>
<br>
Thanks in advance!</blockquote></div><br><br clear=3D"all"><div><br></div>-=
- <br><div>Simone Carletti</div><div>Application Developer</div><div><br></=
div><div>Site &amp; Blog: <a href=3D"http://www.simonecarletti.com" target=
=3D"_blank">http://www.simonecarletti.com</a></div>

<div>Email: <a href=3D"mailto:wep...@weppos.net" target=3D"_blank">weppos@w=
eppos.net</a></div><div>LinkedIn: <a href=3D"http://linkedin.com/in/weppos"=
 target=3D"_blank">http://linkedin.com/in/weppos</a></div><div>Skype: weppo=
s</div>

<div><br></div><br>
</div>

--0015175cfa32429aa204bf0acba5--