Skip to content

Instantly share code, notes, and snippets.

@alexmnv
Created February 26, 2015 06:35

Revisions

  1. alexmnv created this gist Feb 26, 2015.
    1 change: 1 addition & 0 deletions xargs multithreaded nslookup
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    (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 }'