Find IP is a command-line application written in Go that allows users to search for IP addresses and server names associated with a given hostname. The application leverages the urfave/cli
package to provide a straightforward interface for performing these lookups.
- IP Lookup: Search for IP addresses associated with a specified hostname.
- Server Lookup: Search for server names (NS records) associated with a specified hostname.
To install and run the Find IP application, you need to have Go installed on your machine. You can download and install Go from the official website.
-
Clone the repository:
git clone https://github.com/Bbarbosa7/find-ip.git cd find-ip
-
Build the application:
go build -o find-ip
-
Run the application:
./find-ip
The Find IP application provides two main commands: ip
and server
. Both commands accept a --host
flag to specify the hostname you want to look up.
To search for IP addresses associated with a hostname:
./find-ip ip --host www.example.com
or using the alias:
./find-ip i --host www.example.com
To search for server names (NS records) associated with a hostname:
./find-ip server --host www.example.com
or using the alias:
./find-ip s --host www.example.com
The project is organized as follows:
.
├── app
│ └── app.go # Contains the main CLI application logic
├── find-ip # Compiled binary after building the application
├── go.mod # Go module file
├── go.sum # Go dependencies file
└── main.go # Entry point of the application
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
For any inquiries or issues, please contact [email protected].
By following the instructions above, you should be able to set up and use the Find IP application to search for IP addresses and server names associated with any hostname. Happy searching!