#!/bin/csh -f #H# This script verifies that the hostname entered as the CLI param matches #H# the reverse DNS of the IP that it points to. set Name=$1 set IP=`dnsip $Name` set RealName=`dnsname $IP` if ("$Name" == "$RealName") then echo "$Name is who he claims to be." exit 0 else echo "$Name is really $RealName." exit 1 endif