Skip to content

Take a list of domains and output the hostname and ip.

License

Notifications You must be signed in to change notification settings

QSoloX/whoisyou

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

whoisyou

Take a list of domains and output the hostname and ip.

Installation

For now the only way to install is to use go get.

go get github.com/QSoloX/whoisyou

Usage

The basic usuage to save it the output to a file.

▶ cat domains.txt|whoisyou > output.txt

Output without directing the output

▶ cat domains.txt|whoisyou
https://site.com 127.0.0.1
https://example.com 127.1.1.1

Additional Usage

The output can be used with a python script like below

with open(f"output.txt") as file:
    for line in file:
        # Strip newline chars and split at space, then assign split to vars
        hostname,ip = line.strip()line.split(" ")
        # Do anything with the output
        print(f"{hostname} has the ip of {ip}")
▶ python main.py
https://site.com has the ip of 127.0.0.1
https://example.com has the ip of 127.1.1.1

Tips

Known Issues

  • There seems to be a output issue when used on windows that makes the file become a utf-16 file.

License

MIT

About

Take a list of domains and output the hostname and ip.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages