Hardware: Old laptop or computer YunoHost version: YunoHost 11.2.27 (stable) I have access to my server : through the webadmin | direct access via keyboard / screen | … Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no If yes, please explain:
Description of my issue
Hello everyone,
I am working on a local yunohost which is accessible from the home network only.
I set a local domain as yunohost.local
Another local domain for an app nextcloud.local
Both worked fine until I restart the server.
So after I restart my server the local domains are not working at all. In fact, I can access my server via ip 192.168.XX.XXX only.
When I go to domains and create new local domain new.local all domains start working again.
I did some experiments:
It seems that yunomdns working normally even though I cannot access the .local domains.
If I stop yunomdns service and then start it, all .local domains are working fine again.
P.S. I need to do stop and start, restart does not work.
I reinstalled the entire YunoHost system, but the problem persisted.
I found a workaround that involves restarting the yunomdns service 30 seconds after the PC starts. It works well.
Here’s how you can do it:
To delay the execution of the sudo systemctl restart yunomdns command by 30 seconds after the system starts, you can modify the systemd service file to include a sleep command. Here’s how you can do it:
UPDATE: The solution I shared above is not working stably. I’ve spent quite some time trying to find a robust solution for getting local domains to work reliably. However, based on the discussion here: Running Yunohost without domain - local use only - #2 by Aleks, it seems that local domains don’t work well out of the box for home-local use.