Skip to main content

Reverse DNS lookup engine

Reason this release was yanked:

Critical error causes library to completely break

Project description

Code style: black

rdns-reaper: Reverse DNS lookup Engine

rdns-reaper is a multi-threaded lookup engine for Python v3 to resolve DNS names from IP addresses. IP addresses can be added to the custom class by a calling program individually or in batches, after which point the client triggers the resolver to execute on all IP addresses. Once the lookup completes, the calling program can retrieve the data in a variety of ways.

The library currently only runs on IPv4 addresses, with IPv6 address functionality planned in the future. Entries can be cached to disk to prevent excessive querying. Limited filtering exists to restrict lookups to RFC1918 IP space as an option.

Installation and Usage

PyPI

$ pip install rdns-reaper
$

Usage

>>> from rdns_reaper import rdns_reaper
>>> rdr = rdns_reaper(limit_to_rfc1918=False, concurrent=20, unresolvable=r"N\A")

>>> iplist = ["8.8.8.8", "1.1.1.1", "8.8.4.4"]
>>> rdr.add_ip_list(iplist)
>>> rdr.resolve_all()

>>> rdr["1.1.1.1"]
one.one.one.one

>>> for address in rdr:
>>>   print(address)
{
	('8.8.8.8', 'dns.google')
	('1.1.1.1', 'one.one.one.one')
	('8.8.4.4', 'dns.google')
}

License

This project currently is not licensed for use by third parties and all rights are retained by the creator. Plans for adoption of a common open source license are in the works.

Project details


Download files

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

Source Distribution

rdns_reaper-0.0.5.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

rdns_reaper-0.0.5-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file rdns_reaper-0.0.5.tar.gz.

File metadata

  • Download URL: rdns_reaper-0.0.5.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.0

File hashes

Hashes for rdns_reaper-0.0.5.tar.gz
Algorithm Hash digest
SHA256 5b8bb1ec2ff039240af193012a2674f921dc5342cd1c2bef4a513a717cee34f6
MD5 aa90a7ad97d5957f5cecfe7c3a28c336
BLAKE2b-256 8ab4ca574a00892f12ae4ea2cdc38ba9c66de7979e2d6061ed5318b63fd9b0fe

See more details on using hashes here.

File details

Details for the file rdns_reaper-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: rdns_reaper-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.0

File hashes

Hashes for rdns_reaper-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0540908803e4ef1392e45bbfe6dfa26417b4ad3d1ad3417f2b0c640bb2e17815
MD5 79810b64ae73e25b5e755b781bb95e5a
BLAKE2b-256 c3e523de97ebf08df48ffb6a17a8222913c3b89f717f21b32336506b6aa00675

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