The instance is known by its domain name in the federation network. If that domain name changes, it's like starting a new instance from scratch.
Sounds like a complicated project to migrate communities and posts and users to a new instance without breaking something.