I don't know any side effects of a bad hosts.conf on LibreELEC, but discovered that this configuration file isn't like I would write it.
Let's see (my box's name is kodi and set by dhcp) on unmodified hosts.conf:
hostname -s (short) = kodi ok
hostname -f (fqdn) = localhost nok
hostname -d (domain) = nok
Now we add
127.0.0.1 localhost
192.168.178.40 kodi kodi.fritz.box
to /storage/.config/hosts.conf like in the example (IP short fqdn):
hostname -s (short) = kodi ok
hostname -f (fqdn) = kodi nok
hostname -d (domain) = nok
Now we change it to the correct way with
127.0.0.1 localhost
192.168.178.40 kodi.fritz.box kodi
and get
hostname -s (short) = kodi ok
hostname -f (fqdn) = kodi.fritz.box ok
hostname -d (domain) = fritz.box ok
Voilà - first comes the IP_address, then the canonical_hostname (FQDN) and optionally aliases...
So /storage/.config/hosts.conf should be:
[hr]
# hosts.conf
# This configuration file allows you to manually map hostnames to
# IP addresses
# Format: IP_address canonical_hostname [aliases...]
# Example: 192.168.0.3 libreelec.mynetwork libreelec
# NOTE: do not edit /etc/hosts directly
# edit /storage/.config/hosts.conf then reboot
127.0.0.1 localhost
::1 localhost
[hr]
ajb