Skip to content

nex2s21/DNSLookUp

Repository files navigation

DNS Lookup Tool

A simple and powerful command-line utility to query various DNS record types for any domain.

Features

  • Query multiple DNS record types (A, AAAA, MX, TXT, NS, CNAME, SOA, PTR)
  • Colorful output for better readability
  • Support for custom DNS servers
  • Simple and intuitive command-line interface

Installation

  1. Install the required package:

    # For Ubuntu/Debian
    sudo apt-get install python3-dnspython
    
    # For other systems using pip
    pip install dnspython
  2. Clone this repository:

    git clone https://github.com/quantumvortex369/dnslookup.git
    cd dnslookup

Usage

# Basic usage
python3 dnslookup.py example.com

# Query specific record type (A, AAAA, MX, TXT, NS, CNAME, SOA)
python3 dnslookup.py example.com -t MX

# Use a specific DNS server
python3 dnslookup.py example.com -n 8.8.8.8

# Perform reverse DNS lookup (PTR)
python3 dnslookup.py -r 8.8.8.8

Examples

# Get all DNS records for google.com
python3 dnslookup.py google.com

# Get only MX records for microsoft.com
python3 dnslookup.py microsoft.com -t MX

# Use Google's public DNS server
python3 dnslookup.py github.com -n 8.8.8.8

Requirements

  • Python 3.6+
  • dnspython library (installed automatically if using pip)

Contributing

Feel free to submit issues and enhancement requests.

About

Tool for searching info about a DNS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published