SUMMARY:Checking NIS maps against DNS

From: comp question <>
Date: Fri Oct 05 2001 - 11:34:40 EDT
I had already posted a summary but many people had asked me to provide the 
script as well.  My mistake :)  Amyway, here it is.  Its pretty basic, as I 
have not done much scripting.
HOSTS=`ypcat hosts | awk '{print $1}'`
for i in  $HOSTS
echo "Results of $i" >> /tmp/results.txt
echo "**********************************************" >> /tmp/results.txt
nslookup $i  2>&1| tee >> /tmp/results.txt
echo "**********************************************" >> /tmp/results.txt

Does anyone have a script , or can point me to one, that will check my NIS 
hosts map to my companies DNS entries to make sure they match.  We are in 
the middle of a major conversion and the IPs are a mess.  Any help would be 
appreciated.  Thanks.

Get your FREE download of MSN Explorer at

sunmanagers mailing list
Received on Fri Oct 5 10:32:37 2001

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:26 EST