How to change main domain in a MU install

Hello, I have a domain expiring in a few days. It is the main domain in a WPMU install.

How do I change it with a new domain without affecting the rest of the sites negatively?

I tried this before and failed so I'm asking for help.