Add management command to get domains from doc ids