SUMMARY:Checking NIS maps against DNS

comp question compquestion at hotmail.com
Fri Oct 5 11:34:40 EDT 2001


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.
#!/bin/ksh
HOSTS=`ypcat hosts | awk '{print $1}'`
for i in  $HOSTS
do
echo "Results of $i" >> /tmp/results.txt
echo "**********************************************" >> /tmp/results.txt
nslookup $i  2>&1| tee >> /tmp/results.txt
echo "**********************************************" >> /tmp/results.txt
done


ORIGINAL POST:
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 http://explorer.msn.com/intl.asp




More information about the sunmanagers mailing list