Priority based loop for domain exchange selection