Giter Club home page Giter Club logo

dpt-tool's Introduction

dpt-tool

Overview

The dpt-tool is a utility written in Python 3 designed to test various basic properties of public DNS servers. It provides a simple way to examine and analyze the supported features of these servers through a command-line interface.

Installation

To install the dpt-tool, use the following command:

pip install -r requirements.txt

This will resolve the necessary dependencies for the tool to run.

Usage

To use the tool, you can follow the example commands below.

Example 1: Performing all tests with default DNS servers

python main.py -c all

Example 2: Specifying the DNS servers and output file

python main.py -c udp_payload_size, do_bit -s '{"Cloudflare": ["1.1.1.1", "1.0.0.1"], "Google Public DNS": ["8.8.8.8"]}' -o output.txt

The available test options are:

  • opt_record: Support OPT Record (RFC 6891)
  • udp_payload_size: Default UDP payload size
  • client_subnet: Client Subnet (RFC 7871)
  • nsid: NSID (RFC 5001)
  • version_bind: version.bind CHAOS/TXT
  • server_id: id.server CHAOS/TXT
  • do_bit: DO bit
  • response_validation: Response validation
  • dnskey_algorithm: DNSKEY algorithms (RFC 8624)
  • dot: DNS-over-TLS (RFC 7858)
  • doh: DNS-over-HTTPS (RFC 8484)
  • 0x20: 0x20 encoding
  • ede: EDNS Extended Errors (EDE)

For specifying the DNS servers, the input must be in JSON format containing a dictionary of server names mapped to a list of IP addresses for each server.

Feedback

Feedback and contributions are welcome! If you encounter any issues or have ideas for improvements, please feel free to open an issue or a pull request on the GitHub repository.

dpt-tool's People

Contributors

hjsjhn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.