implement getDomainFromUrl