Skip to content
Converts a hostname (or URI) to IP address using your local resolver
Go
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
main.go

README.md

h2i

Converts a list of hostnames or URLs to their corresponding IP address

Install

If you have Go installed and configured (i.e. with $GOPATH/bin in your $PATH):

go get -u github.com/cybercdh/h2i

Usage

$ h2i <url>

or

$ cat <file> | h2i

By default, the code will simply print the list of IP's to the console. For more details, use the -v flag, per below.

Options

Usage of h2i:
  -c  <int> set the concurrency level (default 20)
  -v  Show hostname with the corresponding IP
  -vv Show any errors and relevant info
You can’t perform that action at this time.