-1

hosts file:

127.0.0.1 localhost localhost.localdomain

192.168.30.133 localhost machinename

Is it valid that localhost appears in multiple lines?

performanceuser
  • 147
  • 1
  • 2
  • 6
  • 3
    This might be valid, but it probably won't do what you want. [What is the real problem you are trying to solve?](http://meta.stackexchange.com/q/66377/189912) – Michael Hampton Aug 01 '13 at 23:59

2 Answers2

1

Yes, a name can have multiple IP addresses But it wouldn't work as in DNS because it will only return the first match.

imel96
  • 406
  • 4
  • 9
0

It isn't going to hurt anything, especially in the way you show it with your loopback address and then the local machine address.

eric
  • 13
  • 3