progval / Limnoria

A robust, full-featured, and user/programmer-friendly Python IRC bot, with many existing plugins.
https://docs.limnoria.net/
Other
616 stars 171 forks source link

Internet whois appears to be using hardcoded servers #994

Open Mikaela opened 9 years ago

Mikaela commented 9 years ago

Wouldn't using local whois client make more sense? Or are there even Python libraries for whois (I am surprised if there aren't)?

Mikaela commented 9 years ago

Or are there even Python libraries for whois?

https://pypi.python.org/pypi?%3Aaction=search&term=whois&submit=search

Mikaela commented 9 years ago

https://pypi.python.org/pypi/whois/0.7 appears to be in Debian repositories, so it's probably everywhere.

Mikaela commented 9 years ago

That doesn't seem to give so much information either.

Python 3.4.2 (default, Oct 13 2014, 19:49:42)
[GCC 4.2.1 Compatible Debian Clang 3.0 (tags/RELEASE_30/final)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import whois
>>> domain = whois.query('mikaela.info')
>>> print(domain.__dict__)
{'last_updated': None, 'name': 'mikaela.info', 'creation_date': None, 'name_servers': {'dnssec:unsigned', 'coco.ns.cloudflare.com', 'lakas.ns.cloudflare.com', 'name'}, 'expiration_date': None, 'registrar': 'Gandi SAS (R191-LRMS)'}
>>>
carstenhag commented 9 years ago

And these hardcoded servers seem to not find all domains. eg:

<Moter8> moterbot, whois moter8.pw
[moterbot] Error: I couldn't find such a domain.