Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- for ip in $(cat $1);
- do nslookup $ip > /tmp/rdns.txt
- if grep --quiet "name" /tmp/rdns.txt
- then
- cat /tmp/rdns.txt | grep "name" | awk {'print $4'}
- else
- echo "No rDNS set"
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment