whoisdomain 
- A Python package for retrieving WHOIS information of DOMAIN'S ONLY.
- Python >=3.10
- requirements:
- v1 uses only whois and has been be moved to maintenance only
- v2 will use whodap to first retrieve info with rdap, if no data is available try the classic whois approach.
- This package will not support querying ip CIDR ranges or AS information.
- This was a copy of the original DanyCork 'whois'.
- Significantly refactored in 2023 (v1).
- RDAP adding in 2026 (v2).
- The v1 output is still compatible with DanyCork 'whois'.
- the v2 will move away from strict compatibility.
Notes:
- Rdap servers only know about the real IANA domain, the concept of first level domains is not supported when using rdap requests.
Notes
A) https://en.wikipedia.org/wiki/WHOIS
On January 19, 2023, ICANN opened voting on a global amendment to all its registry and registrar agreements. In it they defined an RDAP Ramp-Up Period of 180 days starting with the effectiveness of this amendment. 360 days after this period is defined as the WHOIS Services Sunset Date, after which it is not a requirement for registries and registrars to offer a WHOIS service and instead only an RDAP service is required. All voting thresholds were met within the 60 day voting period and the amendment was approved by the ICANN Board. The date for WHOIS Sunset for gTLDs was set as 28 January 2025.[47]
B) memory leak
2024-02-05: The current whoisdomain has a memory leak.
The memory leak is not relevant for short running use but when using whoisdomain in long running programs you should be aware that each query will increase its memory use.
Versioning
- I will start versioning at 1.x.x
- the second item will be YYYYMMDD,
- the third item will start from 1 and be only used if more than one update will have to be done in one day.
Versions 1.x.x will keep the output compatible with Danny Cork.
Versions 2.x.x will add a dependency on whodap and use rdap based whois data before consulting historical whois.
Releases
- Releases are avalable at: Pypi
Pypi releases can be installed with:
pip install whoisdomain
Features
- See: Features
Dependencies
- please install also the command line "whois" of your distribution as this library parses the output of the "whois" cli command of your operating system
Notes for Mac users
- it has been observed that the default cli whois on Mac is showing each forward step in its output, this makes parsing the result very unreliable.
- using a brew install whois will give in general better results.
Docker release
- See Docker
Usage example
- See Usage
whoisdomain
- the cli
whoisdomainis documented in whoisdomain-cli
ccTLD & TLD support
Most tld's are now autodetected via IANA root db, see the Analizer directory
and make suggest.
- see the file: tld_regexpr
- for python use:
whoisdomain.validTlds() - for cli use
whoisdomain -S
Support
- Python 3.x is supported for x >= 10
Author's
- See: Authors
Updates
- see Updates for a full history of changes.
2.20260709.1
- switch to minimal version 3.10
- update gitgub-action lint (mypy) to use
setup-python@v6andcheckout@v6 - start working on v2 with rdap first
in progress
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file whoisdomain-2.20260709.1.tar.gz.
File metadata
- Download URL: whoisdomain-2.20260709.1.tar.gz
- Upload date:
- Size: 55.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1723990422d8cf42cc47db16f0a3c6f3b8cfb903fec30d717309a2cb4546316
|
|
| MD5 |
3c10b280c94f8d70a6c0e0b64f76d6b3
|
|
| BLAKE2b-256 |
6cf09c17cde4f5af7dbdabebc60c40b8278e42892057c9ea71fedde192284096
|
File details
Details for the file whoisdomain-2.20260709.1-py3-none-any.whl.
File metadata
- Download URL: whoisdomain-2.20260709.1-py3-none-any.whl
- Upload date:
- Size: 66.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0be6d4fd62866cbb468a0fbd50c143d7b8198a907bbf5ebbab4a14b4a8d9dc43
|
|
| MD5 |
fe52ca1f4f737437e6b8e3f99edc81d4
|
|
| BLAKE2b-256 |
704fc5cd411be043cc259251c604e0facd066a6d42c4d94e9299fc2ef390ec19
|