Skip to content

A simple Go project that retrieves the IPv4 addresses of a given domain name. This tool uses the net package to resolve domain names and display their corresponding IP addresses.

License

Notifications You must be signed in to change notification settings

JustMrNone/ipof

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IPOF (IP of Domain)

IPOF is a simple Go project that retrieves the IPv4 addresses of a given domain name. It consists of two modules:

  1. domaintoip: A library that provides functionality to resolve domain names to their IP addresses.
  2. ipof: A command-line application that uses the domaintoip library to interact with users and display the resolved IP addresses.

Features

  • Resolves both IPv4 addresses for a given domain
  • Interactive mode for entering domain names
  • Command-line argument support for non-interactive usage

Installation

  1. Clone the repository:

    git clone https://github.com/JustMrNone/ipof.git
    cd ipof/ipof
  2. Build and Run the application:

    go build ipof.go
    
    # Interactive mode
    .\ipof.exe
    
    # With domain argument
    .\ipof.exe example.com
  3. 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

Requirements

  • Go 1.21 or higher

Enjoy!

About

A simple Go project that retrieves the IPv4 addresses of a given domain name. This tool uses the net package to resolve domain names and display their corresponding IP addresses.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages