utkarshkukreti / whois.ex

Pure Elixir WHOIS client and parser.
27 stars 16 forks source link

Doesn't work with a number of domains #3

Open chrism2671 opened 4 years ago

chrism2671 commented 4 years ago

I appreciate on the README it states this only works with .com/.org etc, but based on the tld.csv which implies wider coverage, I thought I would raise an issue.

Here are some failing test cases:

Looking at Server.ex, it seems like this module will only support TLDs with a single ..

As an aside, there's also this, which appears to be more up-to-date.

https://github.com/whois-server-list/whois-server-list

exjutsu commented 4 years ago

Those two domains appear to return a very different record format and will probably need an adapter just to handle them.

s3cur3 commented 5 months ago

Another example of a domain with a very different structure: balcia.lv

[Domain]
Domain: balcia.lv
Status: active

[Holder]
    Type: Legal person
    Name: [Name redacted]
    Address: [Address redacted]
    RegNr: 40003159840
Visit: https://www.nic.lv/whois/contact/balcia.lv to contact.

[Tech]
Type: Natural person
Visit: https://www.nic.lv/whois/contact/balcia.lv to contact.

[Nservers]
Nserver: ns.online.lv
Nserver: ns2.online.lv
Nserver: ns3.online.lv

[Whois]
Updated: 2024-02-09T12:12:28.047992+00:00

[Disclaimer]
% The WHOIS service is provided solely for informational purposes.
%
% It is permitted to use the WHOIS service only for technical or administrative
% needs associated with the operation of the Internet or in order to contact
% the domain name holder over legal problems.
%
% Requestor will not use information obtained using WHOIS:
% * To allow, enable or in any other way to support sending of unsolicited mails (spam)
% * for any kind of advertising
% * to disrupt Internet stability and security
%
% It is not permitted to obtain (including copying) or re-use in any form or
% by any means all or quantitatively or qualitatively significant part
% of the WHOIS without NIC's express permission.