SUMMARY:Checking NIS maps against DNS

From: comp question <compquestion_at_hotmail.com>
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.
#!/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
Received on Fri Oct 5 16:34:40 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:32:32 EDT