Created
May 4, 2017 13:43
-
-
Save itochan/c2f6263b54395e78f03f6fcc83c9a86d to your computer and use it in GitHub Desktop.
ホスト名を正引きして逆引きする関数
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ptrhost () { | |
host $1 | grep -v mail >&2 | rev | cut -d' ' -f1 | rev | xargs -I{} host {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment