#!/bin/sh url=$1 host $url | head -n 1 host www.$url | head -n 1