my settings:
[picasso alois]# cat /etc/hosts
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomain localhost
127.0.1.1 picasso.localdomain picasso
# End of file
have you file /etc/conf.d/hostname ? here can you give your hostname too (maybe OpenRC specific setting):
[picasso conf.d]# cat /etc/conf.d/hostname
# Set to the hostname of this machine
hostname='picasso'
[picasso etc]# cat /etc/hostname
picasso