whoiser icon indicating copy to clipboard operation
whoiser copied to clipboard

Unhandled WHOIS Response for .IT

Open JAD3N opened this issue 4 years ago • 4 comments

Version(s) affected: all?

Description
The WHOIS server used for .IT returns an unhandled format that causes data such as contacts/registrar to be missed.

How to reproduce Use whoiser with any .IT TLD and compare it to the actual response.

Additional context
The WHOIS response format used by whois.nic.it:

Registrar
  Organization:     Gandi SAS
  Name:             GANDI-REG
  Web:              http://www.gandi.net
  DNSSEC:           no

JAD3N avatar Jun 23 '21 14:06 JAD3N

Here is also the structure for the nameservers:

Nameservers
  ns1.example.com
  ns2.example.com

JAD3N avatar Jun 24 '21 11:06 JAD3N

Hey @JAD3N

The library has only a basic WHOIS parser, that handles the most common format Label: value. .it (and many other ccTLDs) returns data in a different format, and this can't be parsed to JSON/object yet.

If you want to take a look at it, you can see how extra parsers were added here https://github.com/LayeredStudio/whoiser/blob/master/src/parsers.js#L265 This is something I also want to improve, and in the next few weeks I'll check which WHOIS server need custom parsers to add them.

AndreiIgna avatar Jun 25 '21 13:06 AndreiIgna

@AndreiIgna I don't mind having a look into this to see if I can handle it. Would you be able to provide a list of WHOIS servers which have different formats that are already handled? That would give me a good head start.

JAD3N avatar Jun 25 '21 13:06 JAD3N

@AndreiIgna

I've started re-implementing and documenting the different WHOIS response structures on a new branch: https://github.com/JAD3N/whoiser/tree/formats

I'm planning on using a different parsing structure which you can find in this file: https://github.com/JAD3N/whoiser/blob/formats/formats/default.md

This way I should be able to accommodate a variety of ccTLD responses.

Any feedback and suggestions would be appreciated.

JAD3N avatar Jun 25 '21 15:06 JAD3N

@JAD3N Check out https://github.com/LayeredStudio/whoiser/pull/92; it should improve the parsing of .it considerably.

jonathansampson avatar Feb 02 '23 19:02 jonathansampson