hosts file:
127.0.0.1 localhost localhost.localdomain
192.168.30.133 localhost machinename
Is it valid that localhost appears in multiple lines?
hosts file:
127.0.0.1 localhost localhost.localdomain
192.168.30.133 localhost machinename
Is it valid that localhost appears in multiple lines?
Yes, a name can have multiple IP addresses But it wouldn't work as in DNS because it will only return the first match.
It isn't going to hurt anything, especially in the way you show it with your loopback address and then the local machine address.