Skip to main content

CZDS

Project description

CZDS

PyPI Status Python Version License

Read the documentation at https://czds.readthedocs.io/ Code Quality & Tests

Codecov

pre-commit Black

What is CZDS?

Each Top Level Domain (TLD) is maintained by a registry operator, who also manages a publicly available list of Second Level Domains (SLDs) and the details needed to resolve those domain names to Internet Protocol (IP) addresses.

The registry operator’s zone data contains the mapping of domain names, associated name server names, and IP addresses for those name servers. These details are updated by the registry operator for its respective TLDs whenever information changes or a domain name is added or removed.

Each registry operator keeps its zone data in a text file called the Zone File which is updated once every 24 hours.

Features

  • Retrieve Centralized Zone Transfer Files from root DNS servers hosted by ICAAN and other agencies
  • Download one or all of the zone files and return data in multiple formats; text, json or a file (default)
  • You can now retrieve zone files using multi-threading

Roadmap

The following are some of the features I am planning on adding but would love to hear everyones thoughts as well.

  • Add ability to search based on domain and/or TLD
    • This may include using algorithms like Levenshtein distance, confusables/idna characters, etc.
  • Add ability to derive differences between zone files over time
  • Add ability to retrieve other contextual external information like WHOIS
  • Add ability to save/store data into a database

Requirements

  • You need a CZDS account with ICAAN. You can sign-up here
  • Internet access

Installation

You can install CZDS via pip from PyPI:

$ pip install czds

If you are using poetry (recommended) you can add it to your package using

poetry add czds

Usage

Below is the command line reference but you can also use the current version of czds to retrieve the help by typing czds --help.

NAME
    czds - Main class for ICAAN CZDS.

SYNOPSIS
    czds GROUP | VALUE | --username=USERNAME --password=PASSWORD --save_directory=SAVE_DIRECTORY

DESCRIPTION
    Main class for ICAAN CZDS.

ARGUMENTS
    USERNAME
        Type: ~AnyStr
    PASSWORD
        Type: ~AnyStr
    SAVE_DIRECTORY
        Type: ~AnyStr

GROUPS
    GROUP is one of the following:

     BASE_HEADERS

     links

VALUES
    VALUE is one of the following:

     AUTH_URL

     BASE_URL

     OUTPUT_FORMAT

     PASSWORD

     SAVE_PATH

     THREAD_COUNT

     USERNAME

     connection

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

Developmemt

You can clone the repositry and begin development using

git clone https://github.com/MSAdministrator/czds.git
cd czds
poetry install

If you are using pyenv to manage your enviroments you can set a config option in poetry to use the set pyenv version of python by running this:

poetry config virtualenvs.prefer-active-python true
poetry install

License

Distributed under the terms of the [MIT license][LICENSE.md], CZDS is free and open source software.

Security

Security concerns are a top priority for us, please review our Security Policy.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

This project was generated from @MSAdministrator's Hypermodern Python Cookiecutter template.

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

czds-0.1.1.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

czds-0.1.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file czds-0.1.1.tar.gz.

File metadata

  • Download URL: czds-0.1.1.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.8.13 Darwin/22.3.0

File hashes

Hashes for czds-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fdc28c0ed04fb60cc542290702592f8a74af7ac5d27a2c8fb10d3f98b5fff770
MD5 69b35e5f63a8f2360c88a929496aa360
BLAKE2b-256 0f7ea272d7bf67059b5b3fc248e044b6519df569a1521d5e6b956604715193da

See more details on using hashes here.

Provenance

File details

Details for the file czds-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: czds-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.8.13 Darwin/22.3.0

File hashes

Hashes for czds-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0243d12a82ea579ee325b9d57913113c9e4202d36537c41a36aa1c53f774de83
MD5 fbe73005ed97d9ffb7bad74354cc88bd
BLAKE2b-256 127e2f0183aa838e43764327cfd7d2a50c55cae92e4de8147b0d902e9b28b307

See more details on using hashes here.

Provenance

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