Skip to main content

Bulk DNS Query Tool

Project description

Bulk DNS Query Tool

PyPI Downloads This tool allow for bulk DNS lookups via CSV or TXT file passed as an argument.

Requirements:

  • Python 3.9+

Installing the Package

You can install the tool using the following command directly from Github.

pip install git+https://github.com/pfptcommunity/bulkdnsquery.git

or can install the tool using pip.

# When testing on Ubuntu 24.04 the following will not work:
pip install bulkdnsquery

If you see an error similar to the following:

error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.

    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.

    If you wish to install a non-Debian packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.

    See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

You should use install pipx or you can configure your own virtual environment and use the command referenced above.

pipx install bulkdnsquery

Usage Options:

usage: dnscheck [-h] -i <file> [--input-type {txt,csv}] [--host-ip IP/HOST] [--ns 8.8.8.8 [8.8.8.8 ...]] [--dmarc] [--spf] [--mx] [-a] [-x] [-c] -o <xlsx>

Bulk DNS Lookup Tool

optional arguments:
  -h, --help                  show this help message and exit
  -i <file>, --input <file>   CSV file containing a list of domains
  --input-type {txt,csv}      Type of input file to process (txt or csv). (Default=csv)
  --host-ip IP/HOST           CSV field of host or IP. (default=Domain)
  --ns 8.8.8.8 [8.8.8.8 ...]  List of DNS server addresses
  --dmarc                     DMARC record lookup
  --spf                       SPF record lookup
  --mx                        MX record lookup
  -a, --forward               A record lookup
  -x, --reverse               PTR record lookup, ip to host
  -c, --compact               Compact format will add multiple records to single column.
  -o <xlsx>, --output <xlsx>  Output file

Sample Output

Data tabs are base on the selected lookup information. In the examples below DMARC, SPF, MX, and A records were selected for the the batch lookup. The ouput is in compact form.

View of DMARC Records image

View of SPF Data image

View of MX Data image

View of A Data image

View of PTR Data image

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

bulkdnsquery-1.0.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

bulkdnsquery-1.0.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file bulkdnsquery-1.0.0.tar.gz.

File metadata

  • Download URL: bulkdnsquery-1.0.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for bulkdnsquery-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9364f12510360983a531c306ef421ae61fb56409adc2ca7d15342203ab6da030
MD5 9ae92831906f882cfecec3e9a5366b4d
BLAKE2b-256 b584848e6567a2bfaf85959c294c70137df24f58ce314ba2ec1a87968d98a591

See more details on using hashes here.

File details

Details for the file bulkdnsquery-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: bulkdnsquery-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for bulkdnsquery-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a600cea729ee6ac0378d072fb87516eb11ac9920ede039423f89b20903844326
MD5 3772284eddd31957b99e4f6cb455ce95
BLAKE2b-256 5b89dbb2968d2a5a1fd79b29aa38bcb779d0eaad2d37469c346b40dc2cbcb4f6

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