#!/bin/sh nslookup $1 2> /dev/null | tail -3 | egrep '^Address' \ | awk '{ print $2 }'