Advertisement
SH1NU11b1

dig3

Feb 17th, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.15 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. IPLIST="/home/user/Documents/dig/blmal_dns.txt"
  4.  
  5. while read IP; do
  6.     dig -x "$IP" +short | head -1
  7. done < "$IPLIST" > results.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement