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 _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagersReceived 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