better search for hostname