What type of hardware are you using: Virtual machine What YunoHost version are you running: 12.1.14 How are you able to access your server: The webadmin
SSH
Direct access via physical keyboard/screen Are you in a special context or did you perform specific tweaking on your YunoHost instance ?: using the private nameserver in /etc/resolv.conf
Describe your issue
YunoHost 12.1 is running on 192.168.0.12 = yuno12.it.lan.
When adding a subdomain I get:
yunohost domain add webmin.yuno12.it.lan
WARNING Could not identify correctly the dns zone for domain yuno12.it.lan, returning it.lan
The more subdomains there are, the more often the warning appears and the longer the command takes.
Question: What exactly should I do to get rid of these warnings (private LAN, private TLD .lan)?
Thank you!
Share relevant logs or error messages
WARNING Could not identify correctly the dns zone for domain yuno12.it.lan, returning it.lan
.lan is not a private TLD according to the standards, hence the warnings. Official private TLD are .local (but reserved for mDNS), .test, .home.arpa, and .internal.
I personally use this last one for a VPN with Headscale.
If you still want to use .lan, you will have to hack into YunoHost’s code every time YunoHost is upgraded. The list of special TLD is in /usr/lib/python3/dist-packages/yunohost/utils/dns.py on line 29, add yours in there.