mass dns check

Grab a record of multiple domains
language: Other
license: GPL 2

Code for Snippet:

                
#!/bin/bash
 
for dom in cat ./domainslist.txt
do
 
result=$(dig +noall +answer $domains | awk '{print $5}')
 
if [ "$result" != '' ];then
 
echo "$dom" >> /home/xxxx/havingA.txt
 
else
 
echo "$dom" >> /home/xxxx/havingNoA.txt
 
fi
 
done
comments powered by Disqus

Info

Tags: shell bash

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 694
Date Added: 2012-12-09 03:46:06
Last Modified: 0000-00-00 00:00:00

Web Analytics