Hostnames on LAN section is accepting wrong characters

Setting Static IP address and hostname on LAN section, I noticed that the system is accepting wrong characters (e.g. space). So for example I called my PC “MY PC” instead of “MY-PC”, and dnsmasq failed to start:

Tue May 24 10:50:46 2022 daemon.crit dnsmasq[11759]: bad DHCP host name at line 23 of /var/etc/dnsmasq.conf.cfg01411c
Tue May 24 10:50:46 2022 daemon.crit dnsmasq[11759]: FAILED to start up
Tue May 24 10:50:46 2022 daemon.info procd: Instance dnsmasq::cfg01411c s in a crash loop 6 crashes, 0 seconds since last crash

Also, even if I am setting hostnames on the right format, I have this error:

Tue May 24 10:51:28 2022 daemon.err dnsmasq[15929]: failed to load names from /tmp/hosts/dhcp.cfg01411c: Permission denied

Thanks for your feedback, we will fix the bug.

2 Likes