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.101.151.26 with SMTP id d26mr12832875ano.13.1335993386903;
        Wed, 02 May 2012 14:16:26 -0700 (PDT)
X-BeenThere: ruby-whois@googlegroups.com
Received: by 10.236.121.65 with SMTP id q41ls1251372yhh.8.gmail; Wed, 02 May
 2012 14:16:26 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.236.173.74 with SMTP id u50mr428134yhl.1.1335993386625; Wed,
 02 May 2012 14:16:26 -0700 (PDT)
Authentication-Results: ls.google.com; spf=pass (google.com: domain of
 flesh...@gmail.com designates internal as permitted sender)
 smtp.mail=flesh...@gmail.com; dkim=pass
 header...@gmail.com
Received: by 36g2000yqi.googlegroups.com with HTTP; Wed, 2 May 2012 14:16:26
 -0700 (PDT)
Date: Wed, 2 May 2012 14:16:26 -0700 (PDT)
In-Reply-To: <CAAdVROmH++eFxhgoyb6KuUWOiyo6b7xdv72vkfgVdLw9oZX8_A@mail.gmail.com>
References: <7a938905-ca77-4695-a9b6-9f4275dd1bde@v22g2000yqm.googlegroups.com>
 <CAAdVROnRXPnd5udCodAuYL41sQH9yLhUavd7AzfV95ACgLdFaQ@mail.gmail.com>
 <fb0e4baf-5553-42ff-b90e-0e854eb763ae@h12g2000yqi.googlegroups.com> <CAAdVROmH++eFxhgoyb6KuUWOiyo6b7xdv72vkfgVdLw9oZX8_A@mail.gmail.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3)
 AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.168 Safari/535.19,gzip(gfe)
Message-ID: <a88d6998-b962-4510-9151-9113864fd932@36g2000yqi.googlegroups.com>
Subject: Re: popular whois server response not being parsed
From: Craayzie <flesh...@gmail.com>
To: Ruby Whois <ruby-whois@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I'm using 2.5.1 and when I run "puts Whois.query('twitter.com')", I
get the same response as you so it seems to be working fine in that
case.

I guess my question is: how do I get to the contacts? I was hoping to
have access to r.technical_contacts, r.admin_contacts, etc ..

> r =3D Whois.query('twitter.com')
> r.technical_contacts
 =3D> nil

Thanks!

On May 2, 2:10=A0pm, Simone Carletti <wep...@weppos.net> wrote:
> Which version are you using? The following call works perfectly for me.
>
> ```ruby
> puts Whois.query('twitter.com')
>
> Whois Server Version 2.0
>
> Domain names in the .com and .net domains can now be registered
> with many different competing registrars. Go tohttp://www.internic.net
> for detailed information.
>
> =A0 =A0Server Name: TWITTER.COM.PAVLINOFF-55-11-44.COM
> =A0 =A0IP Address: 64.29.154.69
> =A0 =A0Registrar: HOSTOPIA.COM INC. D/B/A APLUS.NET
> =A0 =A0Whois Server: whois.names4ever.com
> =A0 =A0Referral URL:http://www.aplus.net
>
> =A0 =A0Server Name: TWITTER.COM.GET.ONE.MILLION.DOLLARS.AT.WWW.UNIMUNDI.C=
OM
> =A0 =A0IP Address: 209.126.190.71
> =A0 =A0Registrar: DIRECTI INTERNET SOLUTIONS PVT. LTD. D/B/A
> PUBLICDOMAINREGISTRY.COM
> =A0 =A0Whois Server: whois.PublicDomainRegistry.com
> =A0 =A0Referral URL:http://www.PublicDomainRegistry.com
>
> =A0 =A0Domain Name: TWITTER.COM
> =A0 =A0Registrar: MELBOURNE IT, LTD. D/B/A INTERNET NAMES WORLDWIDE
> =A0 =A0Whois Server: whois.melbourneit.com
> =A0 =A0Referral URL:http://www.melbourneit.com
> =A0 =A0Name Server: NS1.P34.DYNECT.NET
> =A0 =A0Name Server: NS2.P34.DYNECT.NET
> =A0 =A0Name Server: NS3.P34.DYNECT.NET
> =A0 =A0Name Server: NS4.P34.DYNECT.NET
> =A0 =A0Status: clientTransferProhibited
> =A0 =A0Updated Date: 30-aug-2011
> =A0 =A0Creation Date: 21-jan-2000
> =A0 =A0Expiration Date: 21-jan-2019
>
> >>> Last update of whois database: Wed, 02 May 2012 21:09:24 UTC <<<
>
> NOTICE: The expiration date displayed in this record is the date the
> registrar's sponsorship of the domain name registration in the registry i=
s
> currently set to expire. This date does not necessarily reflect the
> expiration
> date of the domain name registrant's agreement with the sponsoring
> registrar. =A0Users may consult the sponsoring registrar's Whois database=
 to
> view the registrar's reported date of expiration for this registration.
>
> TERMS OF USE: You are not authorized to access or query our Whois
> database through the use of electronic processes that are high-volume and
> automated except as reasonably necessary to register domain names or
> modify existing registrations; the Data in VeriSign Global Registry
> Services' ("VeriSign") Whois database is provided by VeriSign for
> information purposes only, and to assist persons in obtaining information
> about or related to a domain name registration record. VeriSign does not
> guarantee its accuracy. By submitting a Whois query, you agree to abide
> by the following terms of use: You agree that you may use this Data only
> for lawful purposes and that under no circumstances will you use this Dat=
a
> to: (1) allow, enable, or otherwise support the transmission of mass
> unsolicited, commercial advertising or solicitations via e-mail, telephon=
e,
> or facsimile; or (2) enable high volume, automated, electronic processes
> that apply to VeriSign (or its computer systems). The compilation,
> repackaging, dissemination or other use of this Data is expressly
> prohibited without the prior written consent of VeriSign. You agree not t=
o
> use electronic processes that are automated and high-volume to access or
> query the Whois database except as reasonably necessary to register
> domain names or modify existing registrations. VeriSign reserves the righ=
t
> to restrict your access to the Whois database in its sole discretion to
> ensure
> operational stability. =A0VeriSign may restrict or terminate your access =
to
> the
> Whois database for failure to abide by these terms of use. VeriSign
> reserves the right to modify these terms at any time.
>
> The Registry database contains ONLY .COM, .NET, .EDU domains and
> Registrars.
>
> Domain Name.......... twitter.com
> =A0 Creation Date........ 2000-01-22
> =A0 Registration Date.... 2011-08-31
> =A0 Expiry Date.......... 2019-01-22
> =A0 Organisation Name.... Twitter, Inc.
> =A0 Organisation Address. 795 Folsom Street
> =A0 Organisation Address. Suite 600
> =A0 Organisation Address. San Francisco
> =A0 Organisation Address. 94107
> =A0 Organisation Address. CA
> =A0 Organisation Address. UNITED STATES
>
> Admin Name........... Domain Admin
> =A0 Admin Address........ 795 Folsom Street
> =A0 Admin Address........ Suite 600
> =A0 Admin Address........ San Francisco
> =A0 Admin Address........ 94107
> =A0 Admin Address........ CA
> =A0 Admin Address........ UNITED STATES
> =A0 Admin Email.......... ad...@melbourneitdbs.com
> =A0 Admin Phone.......... +415.2229670
> =A0 Admin Fax............ +415.2220922
>
> Tech Name............ Tech Admin
> =A0 Tech Address......... 795 Folsom Street
> =A0 Tech Address......... Suite 600
> =A0 Tech Address......... San Francisco
> =A0 Tech Address......... 94107
> =A0 Tech Address......... CA
> =A0 Tech Address......... UNITED STATES
> =A0 Tech Email........... domains-t...@twitter.com
> =A0 Tech Phone........... +415.2229670
> =A0 Tech Fax............. +415.2220922
> =A0 Name Server.......... NS2.P34.DYNECT.NET
> =A0 Name Server.......... NS3.P34.DYNECT.NET
> =A0 Name Server.......... NS4.P34.DYNECT.NET
> =A0 Name Server.......... NS1.P34.DYNECT.NET
> ```
>
>
>
>
>
>
>
>
>
> On Wed, May 2, 2012 at 11:07 PM, Craayzie <flesh...@gmail.com> wrote:
> > Hi Simone - thanks for the quick response. When I let the library
> > handle the lookup, it stops at verisign and does not follow to the
> > melbourne server. Is there a way to have it complete the lookup?
>
> > =A0> Whois.query('twitter.com').referral_whois
> > =A0=3D> ["whois.names4ever.com", "whois.PublicDomainRegistry.com",
> > "whois.melbourneit.com"]
>
> > Thanks!
>
> > On May 2, 3:02 am, Simone Carletti <wep...@weppos.net> wrote:
> > > The Whois server for twitter.com is verisign, then melbourne.
> > > The simplest way is the leave the library handing the full whois proc=
ess.
>
> > > r =3D Whois.query "twitter.com"
> > > r.expires_on
> > > # =3D> 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 =3D Whois::Server.factory(:tld, ".", "whois.melbourneit.com"=
)
> > > > r =3D 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
>
> --
> Simone Carletti
> Application Developer
>
> Site & Blog:http://www.simonecarletti.com
> Email: wep...@weppos.net
> LinkedIn:http://linkedin.com/in/weppos