user1607772
user1607772

Reputation: 11

pywhois on domains with multiple records

I'm trying to create a simple app that will allow me to run a whois, but I've hit a road block.

>>> w = pywhois.whois('google.com')
>>> print w
creation_date: []
domain_name: []
emails: []
...

I'm about 99% sure that I'm not getting any results because running:

$ whois google

fails due to multiple records but running "=xxx" will run a single record.

I can run a search this way using python-whois:

>>> w = whois.query('=google.com')

My solution would be sticking with python-whois but pywhois returns much more information.

Has anyone run into this before or have a work around for running a single record in pywhois?

Upvotes: 1

Views: 623

Answers (0)

Related Questions