Skip to content

A fast async domain discovery tool written in Rust

License

Notifications You must be signed in to change notification settings

Intsights/pydomdisco

Repository files navigation

Logo

A fast async domain discovery tool written in Rust

license Python OS Build PyPi

Table of Contents

About The Project

This library is intended to be used to discover registered domains according to the given TLD list by performing a fast and accurate resolving process. It was written in Rust in order to meet the performance requirements.

Built With

Installation

pip3 install pydomdisco

Usage

import pydomdisco


# Get a list of tlds to their corresponding nameservers IP addressed

# Only root tlds
root = pydomdisco.Discoverer.get_root_tld_to_nameservers_ips()

# Full list of the PSL tlds
psl = pydomdisco.Discoverer.get_psl_tld_to_nameservers_ips()

# Initialize the discovery engine loaded with the given tlds
discoverer = pydomdisco.Discoverer(root | psl)

# Perform the discovery process and return the list of discovered registered domains
registered_domains = discoverer.discover(
    [
        'google',
        'microsoft',
        'tesla',
    ],
)

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Gal Ben David - [email protected]

Project Link: https://github.com/intsights/pydomdisco