IPOF is a simple Go project that retrieves the IPv4 addresses of a given domain name. It consists of two modules:
- domaintoip: A library that provides functionality to resolve domain names to their IP addresses.
- ipof: A command-line application that uses the
domaintoiplibrary to interact with users and display the resolved IP addresses.
- Resolves both IPv4 addresses for a given domain
- Interactive mode for entering domain names
- Command-line argument support for non-interactive usage
-
Clone the repository:
git clone https://github.com/JustMrNone/ipof.git cd ipof/ipof -
Build and Run the application:
go build ipof.go # Interactive mode .\ipof.exe # With domain argument .\ipof.exe example.com
-
Install globally:
#Linux/Mac export PATH=$PATH:/path/to/your/install/directory #WIN set PATH=%PATH%;C:\path\to\your\install\directory # Adds the specified directory to the system PATH environment variable OR go env -w GOBIN=C:\path\to\your\bin # Sets the GOBIN environment variable to the specified directory go install ipof example.com
- Go 1.21 or higher
Enjoy!