Well I am not sure. I believe /etc/hosts can have multiple entries for the same host name. A machine has multiple interfaces and different interface names for sure. But it is not mandatory to have a one-to-one relation among host names and ip addresses for interfaces have ip addresses and not the machine.
For e.g. in Linux we set "multi on" option in host.conf file for the gethostbyname() to return multiple IP addresses.
I don't know how to do it in Tru64 Unix.
I am not sure, don't let me lead you into a blind alley. Let me know what you think glassd.
Thanks.
Main Topics
Browse All Topics





by: glassdPosted on 2004-04-23 at 12:01:55ID: 10902819
Not sure if I am talking nonsense here, but surely /etc/hosts can only show the hostname against one IP address. Normally the machine has a second hostname which it uses on the second interface. If /etc/hosts has the same name for to IP addresses, only one will be accepted.