Created
February 26, 2015 06:35
-
-
Save alexmnv/01260e9708a2ef2c786c to your computer and use it in GitHub Desktop.
xargs multithreaded nslookup
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
(echo google.com; echo yandex.ru; echo mail.ru) | xargs -I DOMAIN --max-procs=10 -n 1 nslookup DOMAIN | awk '/^Address: / { print $2 }; /^Name/ { print $2 }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment