Skip to content

Instantly share code, notes, and snippets.

@raresteak
Created March 8, 2018 14:14
Show Gist options
  • Save raresteak/8d4c03fe9f11ae783cac62dc678879f8 to your computer and use it in GitHub Desktop.
Save raresteak/8d4c03fe9f11ae783cac62dc678879f8 to your computer and use it in GitHub Desktop.
bash one liner nslookup from list of ip addresses
for i in $(cat list.ips);do echo -n $i,;nslookup $i|grep name|awk {'print $4'}; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment