Correct mapper host resolution for domains with ports