dns_explorer

DNSExplorer


Project maintained by vroncevic Hosted on GitHub Pages — Theme by mattgraham

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 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</summary>

    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

</details>

Code coverage

Click to expand code coverage</summary>

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%

</details>

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

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