I think domain is not good name for this parameter, "endpoint" looks much better