I have read your post and understood your requirement.
Greeting of the day!
We have done this before but we have to configure each domain manually.
Please let us know your total requirement. Discuss with us and then we can come to a solution.