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.
pip3 install pydomdisco
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',
],
)
Distributed under the MIT License. See LICENSE
for more information.
Gal Ben David - [email protected]
Project Link: https://github.com/intsights/pydomdisco