MCPcopy Index your code
hub / github.com/devanshbatham/revit

github.com/devanshbatham/revit @v0.0.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.1 ↗ · + Follow
6 symbols 15 edges 5 files 5 documented · 83%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

revit

A command-line utility for performing reverse DNS lookups

🏗️ Install ⛏️ Usage

revit

Install

To install the Reverse DNS Lookup Utility, follow these steps:

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 resprect 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.

Core symbols most depended-on inside this repo

LookupAddr
called by 3
internal/revit/lookup.go
readResolversFromFile
called by 1
cmd/revit/main.go
ProcessStdin
called by 0
internal/revit/stdin.go
ProcessFile
called by 0
internal/revit/file.go
main
called by 0
cmd/revit/main.go

Shape

Function 5
Struct 1

Languages

Go100%

Modules by API surface

cmd/revit/main.go2 symbols
internal/revit/types.go1 symbols
internal/revit/stdin.go1 symbols
internal/revit/lookup.go1 symbols
internal/revit/file.go1 symbols

For agents

$ claude mcp add revit \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact