mboot-github / python-whois

Python module/library for retrieving domain WHOIS information (only domain)
https://pypi.org/project/whois/
MIT License
289 stars 136 forks source link

Parsing error in .me zone whois data #239

Closed nitr0man closed 1 year ago

nitr0man commented 1 year ago

Describe the bug

arkfair.me whois reply isn't parsed correctly (expiration data, name servers, etc)

In [3]: r = whois.query('arkfair.me')                                                                                                                                                                                                        

In [4]: r.__dict__                                                                                                                                                                                                                           
Out[4]: 
{'name': 'arkfair.me',
 'tld': 'me',
 'registrar': 'GoDaddy.com, LLC',
 'registrant_country': 'US',
 'creation_date': None,
 'expiration_date': None,
 'last_updated': None,
 'status': 'clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited',
 'statuses': ['clientRenewProhibited https://icann.org/epp#clientRenewProhibited',
  'clientTransferProhibited https://icann.org/epp#clientTransferProhibited',
  'clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited',
  'clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited'],
 'dnssec': False,
 'name_servers': [],
 'registrant': 'Domains By Proxy, LLC'}
# whois arkfair.me
Domain Name: ARKFAIR.ME
Registry Domain ID: D425500000335771509-AGRS
Registrar WHOIS Server: whois.godaddy.com
Registrar URL: http://www.godaddy.com
Updated Date: 2021-12-28T20:12:29Z
Creation Date: 2020-12-27T06:32:37Z
Registry Expiry Date: 2022-12-27T06:32:37Z
Registrar Registration Expiration Date:
Registrar: GoDaddy.com, LLC
Registrar IANA ID: 146
Registrar Abuse Contact Email: abuse@godaddy.com
Registrar Abuse Contact Phone: +1.4806242505
Reseller:
Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited
Domain Status: clientRenewProhibited https://icann.org/epp#clientRenewProhibited
Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited
Registrant Organization: Domains By Proxy, LLC
Registrant State/Province: Arizona
Registrant Country: US
Name Server: NS51.DOMAINCONTROL.COM
Name Server: NS52.DOMAINCONTROL.COM
DNSSEC: unsigned
URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/
>>> Last update of WHOIS database: 2022-11-16T08:23:19Z <<<

For more information on Whois status codes, please visit https://icann.org/epp

Access to WHOIS information is provided to assist persons in determining the contents of a domain name registration record in the registry database. The data in this record is provided by The Registry Operator for informational purposes only, and accuracy is not guaranteed.  This service is intended only for query-based access. You agree that you will use this data only for lawful purposes and that, under no circumstances will you use this data to (a) allow, enable, or otherwise support the transmission by e-mail, telephone, or facsimile of mass unsolicited, commercial advertising or solicitations to entities other than the data recipient's own existing customers; or (b) enable high volume, automated, electronic processes that send queries or data to the systems of Registry Operator, a Registrar, or Afilias except as reasonably necessary to register domain names or modify existing registrations. All rights reserved. Registry Operator reserves the right to modify these terms at any time. By submitting this query, you agree to abide by this policy.
The Registrar of Record identified in this output may have an RDDS service that can be queried for additional information on how to contact the Registrant, Admin, or Tech contact of the queried domain name.
maarten-boot commented 1 year ago

yes known , there are more currently with similar missing nameservers. solved in my latest pull request.

./test2.py -d arkfair.me

test domain: <<<<<<<<<< arkfair.me >>>>>>>>>>>>>>>>>>>>
name               str               'arkfair.me'
tld                str               'me'
registrar          str               'GoDaddy.com, LLC'
registrant_country str               'US'
creation_date      datetime.datetime 2020-12-27 06:32:37
expiration_date    datetime.datetime 2022-12-27 06:32:37
last_updated       datetime.datetime 2021-12-28 20:12:29
status             str               'clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited'
statuses           list              ['clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited', 'clientRenewProhibited https://icann.org/epp#clientRenewProhibited', 'clientTransferProhibited https://icann.org/epp#clientTransferProhibited', 'clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited']
dnssec             bool              False
name_servers       list              ['ns51.domaincontrol.com', 'ns52.domaincontrol.com']
registrant         str               'Domains By Proxy, LLC'
emails             list              ['abuse@godaddy.com']
DannyCork commented 1 year ago

pr merged.

DannyCork commented 1 year ago

Thanks @maarten-boot