When I stop a service, rename it, and start it again, the domain is lost. I needed to stop again and rename it to its previous name to see the domain settings again. So I deleted the domain and renamed the service, then added the domain back to the renamed service to fix this.