1
# Now if the target is an IP. Make a reverse DNS CALL and MAC determine.
2
if echo "$TARGET" | $IFGREP "^$N\.$N\.$N\.$N\$" ; then
5
dnsdetermine $TARGET DNS
6
if [ ! -z "$RET" ] ; then
7
if [ -z "$DNS" ] ; then
9
elif ! echo " $DNS " | $IFGREP " $RET " ; then
14
# Determine MAC (if possible).
15
if ping -c 1 $TARGET > /dev/null ; then
16
TMP=$(/usr/sbin/arp -n | grep "^$TARGET[[:space:]]" | {
17
read TMPJ1 TMPJ2 TMP TMPJUNK
20
if [ ! -z "$TMP" ] ; then
22
if [ -z "$MAC" ] ; then
24
elif ! echo " $MAC " | $IFGREP " $UMACN " ; then