/revit

A command-line utility for performing reverse DNS lookups

Primary LanguageGoMIT LicenseMIT

revit

A command-line utility for performing reverse DNS lookups

🏗️ Install ⛏️ Usage

revit

Install

To install revit, run the following command:

go install github.com/devanshbatham/revit/cmd/revit@v0.0.1

Usage

This utility allows you to perform reverse DNS lookups on IP addresses. Here are some examples of how to use the tool:

  • Look up a single IP address:
revit -i "8.8.8.8"
  • Look up a list of IP addresses from a file:
revit -l ip_list.txt
  • Pipe input from another command:
echo "8.8.8.8" | revit
cat ip_list.txt | revit

Here are the available command-line flags:

Flag Description Example
-i Specify a single target IP address for reverse DNS lookup. revit -i 8.8.8.8
-l Provide the path to a file containing a list of IP addresses. revit -l ip_list.txt
-c Set the level of concurrency for concurrent DNS lookups (default: 10). revit -c 20
-r Specify resolvers for reverse DNS lookup. revit -r 8.8.8.8
You can provide a single IP address or a path to a file. revit -r resolvers.txt

Inspiration

revit was born out of curiosity and a desire to explore Golang. While there are existing tools like hakrevdns that perform similar tasks (and I have immense respect for them), I decided to create this utility as a personal project to further my understanding of Go and enhance my programming skills.

The development of revit started as an exploration into concurrent programming and networking in Go. As I tinkered with the language's features and learned more about its capabilities, the utility began to take shape.