convert search to hostnames (preparation to deep search)