Hi, I want to improve ruby-whois lib once more. Now I want to add a parser for lviv.ua domains as they have different whois format but at the moment are handled by whois.ua parser. Can someone describe my actions for these task, so I can add this parser and probably some more.
On Friday, June 22, 2012 11:15:59 AM UTC+2, Uko wrote:
> Hi, I want to improve ruby-whois lib once more. Now I want to add a parser > for lviv.ua domains as they have different whois format but at the moment > are handled by whois.ua parser. Can someone describe my actions for these > task, so I can add this parser and probably some more.
On Sunday, June 24, 2012 9:51:24 PM UTC+2, Simone Carletti wrote:
> Hi Uko, > I'm sorry for the late reply, for some reason I didn't receive > notification of this thread.
> Could you explain a little bit what is the behavior of lviv.ua? According > to IANA, the whois server for .UA domain is whois.ua. > http://www.iana.org/domains/root/db/ua.html
> Is there an other whois server? What type of domains belong to this new > server?
> -- Simone
> On Friday, June 22, 2012 11:15:59 AM UTC+2, Uko wrote:
>> Hi, I want to improve ruby-whois lib once more. Now I want to add a >> parser for lviv.ua domains as they have different whois format but at >> the moment are handled by whois.ua parser. Can someone describe my >> actions for these task, so I can add this parser and probably some more.
Every SLD (at least the two I tried) provides their own whois
implementation.
$ ruby-whois rada.cherkassy.ua
% The object shown below is NOT in the UANIC database.
% It has been obtained by querying a remote server:
% (whois.ck.ua) at port 43.
%
% REDIRECT BEGIN
$ ruby-whois az.lviv.ua
% request from 80.117.237.61
% This is the Ukrainian Whois query server #F.
% The Whois is subject to Terms of use
% See https://hostmaster.ua/services/ %
% The object shown below is NOT in the UANIC database.
% It has been obtained by querying a remote server:
% (whois.lviv.ua) at port 43.
%
% REDIRECT BEGIN
$ ruby-whois song.lutsk.ua
% request from 80.117.237.61
% This is the Ukrainian Whois query server #B.
% The Whois is subject to Terms of use
% See https://hostmaster.ua/services/ %
% The object shown below is NOT in the UANIC database.
% It has been obtained by querying a remote server:
% (whois.lutsk.ua) at port 43.
%
% REDIRECT BEGIN
However, as far as I noticed, even in case of redirect the final response
(excluding comments) seems to be the same format of the original
whois.uaresponse. In that case it's simple, we just need to be aware
of the
comments.
> Every SLD (at least the two I tried) provides their own whois implementation.
> $ ruby-whois rada.cherkassy.ua
> % The object shown below is NOT in the UANIC database.
> % It has been obtained by querying a remote server:
> % (whois.ck.ua) at port 43.
> %
> % REDIRECT BEGIN
> $ ruby-whois az.lviv.ua
> % request from 80.117.237.61
> % This is the Ukrainian Whois query server #F.
> % The Whois is subject to Terms of use
> % See https://hostmaster.ua/services/ > %
> % The object shown below is NOT in the UANIC database.
> % It has been obtained by querying a remote server:
> % (whois.lviv.ua) at port 43.
> %
> % REDIRECT BEGIN
> $ ruby-whois song.lutsk.ua
> % request from 80.117.237.61
> % This is the Ukrainian Whois query server #B.
> % The Whois is subject to Terms of use
> % See https://hostmaster.ua/services/ > %
> % The object shown below is NOT in the UANIC database.
> % It has been obtained by querying a remote server:
> % (whois.lutsk.ua) at port 43.
> %
> % REDIRECT BEGIN
> However, as far as I noticed, even in case of redirect the final response (excluding comments) seems to be the same format of the original whois.ua response. In that case it's simple, we just need to be aware of the comments.
> On Tue, Jun 26, 2012 at 11:10 PM, Юрко Тимчук <yuriy.tymc...@unikernel.net> wrote:
> There's a difference in contacts format. Can we bypass it with scanner or something?
> The scanner is used to parse all the properties into a Hash. You should deal with contact composition at parser level.