Skip to main content

DNS Lookup Tool

Python License

Overview

DNS Lookup Tool is an advanced command-line utility for querying various DNS records, performing DNS-over-HTTPS (DoH) lookups, and attempting zone transfers (AXFR). It is designed for security professionals, network engineers, and penetration testers.

Features

  • Query different DNS record types (A, AAAA, CNAME, MX, NS, TXT, SOA, PTR)
  • Perform DNS-over-HTTPS (DoH) queries
  • Attempt DNS zone transfers (AXFR)
  • Support for custom DNS servers
  • Fast and detailed output with response times

Installation

You can install the tool using pip:

pip install dnsl

Or, install from source:

git clone https://github.com/hemaabokila/dns_lookup.git
cd dns_lookup
pip install .

Usage

After installation, you can use the tool from the command line:

dnsl -d example.com

Available Options

usage: dnsl [-h] -d DOMAIN [DOMAIN ...] [-t TYPE] [-s SERVER] [--axfr] [--doh]

Advanced DNS Lookup Tool

optional arguments:
  -h, --help            Show this help message and exit
  -d, --domain DOMAIN   Domain(s) to query (Required)
  -t, --type TYPE       DNS record type (A, AAAA, MX, TXT, etc.)
  -s, --server SERVER   Custom DNS server (e.g., 8.8.8.8)
  --axfr                Attempt Zone Transfer (AXFR)
  --doh                 Use DNS-over-HTTPS (DoH)

Examples

Query all DNS records for a domain:

dnsl -d example.com

Query a specific DNS record type:

dnsl -d example.com -t MX

Use a custom DNS server:

dnsl -d example.com -s 8.8.8.8

Perform a DNS-over-HTTPS (DoH) lookup:

dnsl -d example.com --doh

Attempt a zone transfer:

dnsl -d example.com --axfr -s ns1.example.com

License

This project is licensed under the MIT License.

Author

Developed by Ibrahem abo kila

Metadata

Release files for dnsl 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dnsl 1.0.0
File Size Uploaded Provenance Actions
dnsl-1.0.0.tar.gz 4.6 kB Without provenance Details for dnsl-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dnsl 1.0.0
File Interpreter ABI Platform Actions
dnsl-1.0.0-py3-none-any.whl Python 3 none any Details for dnsl-1.0.0-py3-none-any.whl

Total release size: 9.6 kB

Release files / dnsl-1.0.0.tar.gz

Download URL dnsl-1.0.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
15216105c965c00d8618e8fbfc9c368f3a56af33e2adaae706a2db969260bb04
BLAKE2b-256 checksum
How to use checksums
9bca663fa7f18ca0cae32e02f9a7f7c10eebe0a019451bcaf2a6d94658a6b63d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Release files / dnsl-1.0.0-py3-none-any.whl

Download URL dnsl-1.0.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
885015f6d5421ee0e13eb3f420ba48485c81282adcb2334446677de467cc5789
BLAKE2b-256 checksum
How to use checksums
313b804578927cb65975249d4698ce86fe68a741446fd929ed6dffa89d4fe6d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Security for dnsl 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page