extract the hostname from the dns response