Working solution for known domains