Never having been an instance admin I don't really know the details but I'm pretty sure it's possible to configure Akkoma for example to federate only with specified domains. It has plenty of other features that may also be of interest. I like the "bubble" feature for example.