Skip to main content

Python package for dns exploration

Project description

DNS explorer

dns_explorer is toolset for checking DNS.

Developed in python code.

The README is used to introduce the modules and provide instructions on how to install the modules, any machine dependencies it may have and any other information that should be provided before the modules are installed.

dns_explorer python checker dns_explorer package checker GitHub issues open GitHub contributors

Table of Contents

Installation

Used next development environment

debian linux os

dns_explorer python3 build

Currently there are three ways to install package

  • Install process based on using pip mechanism
  • Install process based on build mechanism
  • Install process based on setup.py mechanism
  • Install process based on docker mechanism
Install using pip

dns_explorer is located at pypi.org.

You can install by using pip

# python3
pip3 install dns_explorer
Install using build

Navigate to release page download and extract release archive.

To install dns_explorer type the following

tar xvzf dns_explorer-x.y.z.tar.gz
cd dns_explorer-x.y.z/
# python3
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py 
python3 -m pip install --upgrade setuptools
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
pip3 install -r requirements.txt
python3 -m build --no-isolation --wheel
pip3 install ./dist/dns_explorer-*-py3-none-any.whl
rm -f get-pip.py
chmod 755 /usr/local/lib/python3.10/dist-packages/usr/local/bin/dns_explorer_run.py
ln -s /usr/local/lib/python3.10/dist-packages/usr/local/bin/dns_explorer_run.py /usr/local/bin/dns_explorer_run.py
Install using py setup

Navigate to release page download and extract release archive.

To install dns_explorer locate and run setup.py with arguments

tar xvzf dns_explorer-x.y.z.tar.gz
cd dns_explorer-x.y.z
# python3
pip3 install -r requirements.txt
python3 setup.py install_lib
python3 setup.py install_egg_info
Install using docker

You can use Dockerfile to create image/container.

Dependencies

dns_explorer requires next modules and libraries

Tool structure

dns_explorer is based on OOP.

Tool structure

Click to expand framework structure
    dns_explorer/
         ├── application/
            ├── __init__.py
            └── service.py
         ├── dns_explorer_bundle.py
         ├── domain/
            ├── __init__.py
            ├── models.py
            └── ports/
                ├── idns_resolver.py
                ├── __init__.py
                └── iservice.py
         ├── engine.py
         ├── infrastructure/
            ├── cli.py
            ├── cli_bundle.py
            ├── config/
               ├── dns_explorer.cfg
               └── dns_explorer.logo
            ├── dns_resolver.py
            ├── explore_command.py
            ├── icli.py
            ├── icli_command.py
            ├── __init__.py
            ├── records_command.py
            ├── resolve_command.py
            └── reverse_command.py
         └── __init__.py

     6 directories, 22 files

Code coverage

Click to expand code coverage
Name Stmts Miss Cover
dns_explorer/__init__.py 8 0 100%
dns_explorer/application/__init__.py 8 0 100%
dns_explorer/application/service.py 69 0 100%
dns_explorer/dns_explorer_bundle.py 37 0 100%
dns_explorer/domain/__init__.py 8 0 100%
dns_explorer/domain/models.py 18 0 100%
dns_explorer/domain/ports/__init__.py 8 0 100%
dns_explorer/domain/ports/idns_resolver.py 10 0 100%
dns_explorer/domain/ports/iservice.py 11 0 100%
dns_explorer/engine.py 62 0 100%
dns_explorer/infrastructure/__init__.py 8 0 100%
dns_explorer/infrastructure/cli.py 36 0 100%
dns_explorer/infrastructure/cli_bundle.py 33 0 100%
dns_explorer/infrastructure/dns_resolver.py 66 0 100%
dns_explorer/infrastructure/explore_command.py 58 0 100%
dns_explorer/infrastructure/icli.py 11 0 100%
dns_explorer/infrastructure/icli_command.py 14 0 100%
dns_explorer/infrastructure/records_command.py 55 0 100%
dns_explorer/infrastructure/resolve_command.py 60 0 100%
dns_explorer/infrastructure/reverse_command.py 54 0 100%
Total 634 0 100%

Usage

Install package

pip3 install armpicom

Prepare main entry point by downloading main.py or create your own.

wget -O main.py https://raw.githubusercontent.com/vroncevic/armpicom/main/main.py

Running tool for DNS exploring

# Use case 1: Standard domain scan (no cluster variations, non-verbose)
echo "=== Running Use Case 1: Standard scan for google.com ==="
python3 main.py explore --domain google.com

# Use case 2: Scan with cluster variations (size 1)
echo "=== Running Use Case 2: Scan for google.com with cluster size 1 ==="
python3 main.py explore --domain google.com --cluster 1

# Use case 3: Scan with cluster size 2 and verbose logging enabled
echo "=== Running Use Case 3: Verbose scan for google.com with cluster size 2 ==="
python3 main.py explore --domain google.com --cluster 2 --verbose True

# Use case 4: Query domain DNS records (A, AAAA, MX, NS, TXT, SOA)
echo "=== Running Use Case 4: DNS Records query for google.com ==="
python3 main.py records --domain google.com

# Use case 5: Resolve forward IP and reverse hostnames for a single domain name
echo "=== Running Use Case 5: Resolve single domain google.com ==="
python3 main.py resolve --domain google.com --verbose True

# Use case 6: Query reverse DNS hostnames for an IP address
echo "=== Running Use Case 6: Query reverse DNS for IP 8.8.8.8 ==="
python3 main.py reverse --ip 8.8.8.8

Docs

Documentation Status

More documentation and info at

Contributing

Contributing to dns_explorer

Copyright and licence

License: GPL v3 License

Copyright (C) 2024 - 2026 by vroncevic.github.io/dns_explorer

dns_explorer is free software; you can redistribute it and/or modify it under the same terms as Python itself, either Python version 3.x or, at your option, any later version of Python 3 you may have available.

Lets help and support PSF.

Python Software Foundation

Donate

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

dns_explorer-1.0.5.tar.gz (36.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dns_explorer-1.0.5-py3-none-any.whl (48.6 kB view details)

Uploaded Python 3

File details

Details for the file dns_explorer-1.0.5.tar.gz.

File metadata

  • Download URL: dns_explorer-1.0.5.tar.gz
  • Upload date:
  • Size: 36.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.0 CPython/3.12.3

File hashes

Hashes for dns_explorer-1.0.5.tar.gz
Algorithm Hash digest
SHA256 ca4558c2a7884f3165d3752a9178f61ec98061f10701646f5ba949f9cff90a67
MD5 b92146a006f4316a39f6916dbaac0e1a
BLAKE2b-256 49609e211099b9588500b55348e22da62dce012026692ac8d3d2b32995496f41

See more details on using hashes here.

File details

Details for the file dns_explorer-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: dns_explorer-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 48.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.0 CPython/3.12.3

File hashes

Hashes for dns_explorer-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 450dfa9a8f53b187fe8bbf46a92a9dae072f3b398161f39d5f8b7233b4289e2d
MD5 3c6d92662df12331e9aed19e4c72124f
BLAKE2b-256 ff4ae5cc4a9439096b6bda7a6f4dabaaeca44b9b2641f76c8f8dd44b7703512f

See more details on using hashes here.

Supported by

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