I don't think there is a method to replace them together,
how many different domin names do you have?
Why not replace them one by one