Set different local domains for multi-site domains

When working with multi-site on Local, while the main website has it’s own local domain, other sites under the multisite use the original domains (overwritten on local hosts file).
The problem is that in order to switch from local to online sites, I need to stop and restart Local each time. Furthermore, it seems that the hosts’ file changes get stuck and are only removed when editing the hosts file manually.