Python package for retrieving WHOIS information of domains.
Maintained. Last release 4 months ago, commits in 2 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install whoisdomainwhoisdomain 
- 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]
Versioning
- I will start versioning at 1.x.x
- the second item will be YYYYMMDD,