https://github.com/devanshbatham/revit
A command-line utility for performing reverse DNS lookups
https://github.com/devanshbatham/revit
Last synced: about 1 year ago
JSON representation
A command-line utility for performing reverse DNS lookups
- Host: GitHub
- URL: https://github.com/devanshbatham/revit
- Owner: devanshbatham
- License: mit
- Created: 2023-08-09T18:08:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-10T12:45:45.000Z (almost 3 years ago)
- Last Synced: 2024-06-19T11:15:13.166Z (almost 2 years ago)
- Language: Go
- Size: 154 KB
- Stars: 43
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
revit
A command-line utility for performing reverse DNS lookups

# Install
To install revit, run the following command:
```sh
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:
```sh
revit -i "8.8.8.8"
```
- Look up a list of IP addresses from a file:
```sh
revit -l ip_list.txt
```
- Pipe input from another command:
```sh
echo "8.8.8.8" | revit
```
```sh
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](https://github.com/hakluke/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.