def METHOD_NAME(self):
    payload = self._get("/domains")
    for domain in payload["domains"]:
        if domain["domain"] == self.domain:
            self.domain_id = self.domain
            return
    while payload["meta"]["links"]["next"] != "":
        query_params = {"cursor": payload["meta"]["links"]["next"]}
        payload = self._get("/domains", query_params=query_params)
        for domain in payload["domains"]:
            if domain["domain"] == self.domain:
                self.domain_id = self.domain
                return
    raise AuthenticationError("Domain not found")