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