weppos / whois-parser

An intelligent — pure Ruby — WHOIS parser.
https://whoisrb.org
MIT License
98 stars 102 forks source link

Whois::ParserError (Unexpected token: discord.gg) #78

Open pusewicz opened 6 years ago

pusewicz commented 6 years ago

The library chokes on the discord.gg domain.

Whois.whois('discord.gg').parser.nameservers
pusewicz commented 6 years ago

This is the output of the whois:

Domain:
     google.gg

Domain Status:
     Active
     Update Prohibited by Registrar
     Delete Prohibited by Registrar
     Transfer Prohibited by Registrar

Registrant:
     Google Inc.

Registrar:
     MarkMonitor Inc. (http://www.markmonitor.com)

Relevant dates:
     Registered on 30th April 2003
     Registry fee due on 30th April each year

Registration status:
     Registered until cancelled

Name servers:
     ns1.google.com
     ns2.google.com
     ns3.google.com
     ns4.google.com

WHOIS lookup made on Wed, 9 May 2018 at 6:58:25 UTC

This WHOIS information is provided for free by CIDR, operator of
the backend registry for domain names ending in GG, JE, and AS.

Copyright (c) and database right Island Networks 1996 - 2018.

You may not access this WHOIS server or use any data from it except
as permitted by our Terms and Conditions which are published
at http://www.channelisles.net/legal/whoisterms

They include restrictions and prohibitions on

- using or re-using the data for advertising;
- using or re-using the service for commercial purposes without a licence;
- repackaging, recompilation, redistribution or reuse;
- obscuring, removing or hiding any or all of this notice;
- exceeding query rate or volume limits.

The data is provided on an 'as-is' basis and may lag behind the
register. Access may be withdrawn or restricted at any time.

Looks like it has changed.

@weppos I'm more than happy to update the current parser. It looks like the https://github.com/weppos/whois-parser/blob/master/lib/whois/parsers/whois.nic.as.rb would handle it. Should I just subclass it instead of using the bocca2 base?

modsognir commented 5 years ago

Running into this problem as well with other .gg domains.