Skip to content

abhishekMuge/nslookup-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 Project Title: Advanced DNS Lookup Tool (C++ with c-ares)

πŸ“‹ Description

This project is a feature-rich DNS lookup utility implemented in C++ using the c-ares asynchronous DNS library. It replicates and enhances the functionality of the traditional nslookup tool, while introducing modern capabilities and flexible options.

The tool supports domain resolution for A (IPv4), AAAA (IPv6), and CNAME records, allows the use of custom DNS servers, and enables multiple domain lookups in a single run with clean, readable output.


✨ Key Features

  • βœ… Asynchronous DNS resolution using c-ares for non-blocking performance.
  • 🌐 Supports multiple domain arguments via command-line input.
  • πŸ“‘ Custom DNS server support (e.g., 8.8.8.8 or 1.1.1.1).
  • πŸ” CNAME alias parsing: Extracts and displays alias chains from DNS responses.
  • πŸ“„ Clean output similar to nslookup, showing both IPv4 and IPv6 addresses along with any aliases.
  • πŸ› οΈ Regex-based preprocessing: Automatically strips http:// or https:// from input domains.
  • 🧡 Built with multithreading and event-driven design internally via c-ares for maximum efficiency.

πŸš€ Example Usage

./dnslookup example.com www.test.com --dns 8.8.8.8

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages