Skip to main content

whoisdomain Spectra Assure Community Badge

  • A Python package for retrieving WHOIS information of DOMAIN'S ONLY.
  • Python >=3.10
  • requirements:
    • whodap>=0.1.16 Spectra Assure Community Badge.
    • tld>=0.13.2 Spectra Assure Community Badge.
    • redis (optional) Spectra Assure Community Badge.
  • 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,
    • 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

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.

Issues

Docker release

Usage example

whoisdomain

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


Updates

  • see Updates for a full history of changes.

2.20260709.1

  • first version 2 release
  • switch to minimal version 3.10
  • update gitgub-action lint (mypy) to use setup-python@v6 and checkout@v6
  • start working on v2 with rdap first

2.20260805.1

  • add dependencies to the pyproject.toml file

2.20260805.2

  • create a separate Issues text and rephrase the memory issue after better testing from Misiu

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

whoisdomain-2.20260805.2.tar.gz (55.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

whoisdomain-2.20260805.2-py3-none-any.whl (66.6 kB view details)

Uploaded Python 3

File details

Details for the file whoisdomain-2.20260805.2.tar.gz.

File metadata

  • Download URL: whoisdomain-2.20260805.2.tar.gz
  • Upload date:
  • Size: 55.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for whoisdomain-2.20260805.2.tar.gz
Algorithm Hash digest
SHA256 58c335eb515ce2e710459c9fed8bb8578ddad9dab640b7399971f544565e84a6
MD5 2aed98638d7e28f61ba4bacd03a6d69c
BLAKE2b-256 f02d6598060ff2069ea277909318025e6eb70c5c1031646f0f906202aa259bc2

See more details on using hashes here.

File details

Details for the file whoisdomain-2.20260805.2-py3-none-any.whl.

File metadata

File hashes

Hashes for whoisdomain-2.20260805.2-py3-none-any.whl
Algorithm Hash digest
SHA256 68e3b96fd05bb4ba0e9607434e39e24fcdd7ffd4bbcd7b9b38fc7b0c64bf0dc8
MD5 57d6ad0c6cf9dc638df78ed335c25635
BLAKE2b-256 c93320bdf6c2513e8f7039ae36599024b378a85cddd6e30bc14f5e6a1c28fbe0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page