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
dnsl-1.0.0.tar.gz 4.6 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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