Skip to main content

Overview

Parses DNS domain names into three parts: the prefix, the registered domain and it's registration point.

Usage

From the CLI

dnssplit www.google.co.uk www.yahoo.com
www.google.co.uk:
  Prefix:    www
  Domain:    google.co.uk
  Reg Point: co.uk
www.yahoo.com:
  Prefix:    www
  Domain:    yahoo.com
  Reg Point: com

Using the API

import dnssplitter
splitter = dnssplitter.DNSSplitter()

splitter.init_tree() # uses internal data
# or load your own:
# splitter.load_psl_file("/path/to/public_suffix_list.dat")
results = splitter.search_tree("www.foo.co.uk")

# Returns an array of [prefix, registered_domain, public_point]:
# results == ['www', 'foo.co.uk', 'co.uk']

Reason for being

There are a number of PSL breakdown libraries. But this one is faster than the others based on some initial tests, and returns more information.

Metadata

Release files for dnssplitter 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dnssplitter 1.1.1
File Size Uploaded Provenance Actions
dnssplitter-1.1.1.tar.gz 49.7 kB Without provenance Details for dnssplitter-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dnssplitter 1.1.1
File Interpreter ABI Platform Actions
dnssplitter-1.1.1-py3-none-any.whl Python 3 none any Details for dnssplitter-1.1.1-py3-none-any.whl

Total release size: 101.6 kB

Release files / dnssplitter-1.1.1.tar.gz

Download URL dnssplitter-1.1.1.tar.gz
Size 49.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cb1c5b7882277d5b796be1459a559722ad0049320dd1cb0c2dc8a349ed27a4f1
BLAKE2b-256 checksum
How to use checksums
6c97e1c5c5982c865e3a342f1ac03235b69432c409eb7bc3d2adebc2fac17741
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.26.0

Release files / dnssplitter-1.1.1-py3-none-any.whl

Download URL dnssplitter-1.1.1-py3-none-any.whl
Size 51.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
84b5643b6e6dc3d331bfee42f236048ad2a54d569ef8528cff1c1469e4c22038
BLAKE2b-256 checksum
How to use checksums
966a54428173043656856a86ccfdaf2f0df3c37dd6c9895c2e34e6799a306708
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.26.0

Security for dnssplitter 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page