On Fri, 01 Aug 2003 07:51:05 -0400, user wrote:
Why not write a script to check ip addresses. Linux snippet follows:
#!/bin/bash
#************************************************* **************
#
# ckip - check ip info for @home news, dns, mail servers
#
#************************************************* **************
# set -xv # dis/enable tracin0g
_deb=0
_isp=comcast.net
_region=${_isp}
_domain=${_region}
tput clear
echo
_fn=/tmp/news
host netnews.${_domain} > $_fn
chmod 666 $_fn
_news_name=netnews.${_domain}
_item_count=0
_item_total=8
while read line
do
set -- $line
case $1 in
$_news_name) _item_count=$(($_item_count+1)) ;;
*) echo 4: News: invalid $1 value $line
echo "netnews server $1 <> $_news_name or"
echo "netnews $1 <> $_news_alias , modify Netscape, NNTPSERVER"
echo "Modify $LOGNAME/.slrnrc, "
echo "Modify /usr/local/site/news0 NNTPSERVER "
echo "Modify /etc/Bastille/bastille-firewall-early.sh"
;;
esac
shift $(($#-1))
case $1 in
63.240.76.16) _item_count=$(($_item_count+1)) ;;
204.127.199.17) _item_count=$(($_item_count+1)) ;;
204.127.204.17) _item_count=$(($_item_count+1)) ;;
216.148.227.77) _item_count=$(($_item_count+1)) ;;
204.127.202.16) _item_count=$(($_item_count+1)) ;;
${_news_name}.) _item_count=$(($_item_count+1)) ;;
*) echo 5: Netnews: invalid last word $1
echo $line
echo Modify firewall
;;
esac
done < $_fn
if [ $_item_count != $_item_total ] ; then
echo 6: Item count $_item_count ne $_item_total
cat $_fn
fi
if [ $_deb -eq 0 ] ; then
/bin/rm $_fn
fi
Some lite reading found at http://www.tldp.org/LDP/abs/html/index.html