for i in $(cat host_name)
do
name=`nslookup $i |grep -v "#" |awk '/Name/ {print $2}'`
ip=`nslookup $i |grep -v "#" |awk '/Address/ {print $2}'`
pipe=`echo "|"`
echo $i $pipe $name $pipe $ip
done