Skip to main content

Extract root from domain

Project description

root-domain

This tool allows to extract the root domain from subdomains. Useful for parse lists of subdomains and retrieve the root domains.

Moreover you also can adjust the depth of the domains extracted with -d and -D

Setup

To install:

git clone https://gitlab.com/Zer1t0/root-domain
cd root-domain/
python3 setup.py install

Examples

Get root domain:

./root-domain.py a.b.c.d.e.google.com
google.com

Get subdomain with depth 2 (first subdomain):

/root-domain.py a.b.c.d.e.google.com -d 2
e.google.com

Get subdomains until depth 4:

./root-domain.py a.b.c.d.e.google.com -D 4
google.com
e.google.com
d.e.google.com
c.d.e.google.com

Get subdomains with depth between 3 and 4:

./root-domain.py a.b.c.d.e.google.com -d 3 -D 4
d.e.google.com
c.d.e.google.com

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

root-domain-0.0.1.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distributions

root_domain-0.0.1-py3.7.egg (5.2 kB view hashes)

Uploaded Source

root_domain-0.0.1-py3-none-any.whl (15.5 kB view hashes)

Uploaded Python 3

Supported by

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