RES_CONF=$IP #SERVER_NAME
#for D_NAME in $(cat ip_list)
do
(sleep 10) | `ssh $D_NAME cat /etc/resolv.conf | grep $IP | awk '{print $2}' > server_name`
DNS=$(cat server_name)
echo $DNS
if [[ $DNS == $RES_CONF ]] ; then
echo $IP >> SERVR_NAME_IP
else
echo $IP >> SERVER_NAME_IPW
fi
done