I'm having problems getting the host name of a multi-homed machine.

My server has two IP addresses and two corresponding host names

SERVER1 =
HOST1 <-- IP1
HOST2 <-- IP2

I have an application that returns the host name given the application. If
the application is running on a second machine "WORK1" then GetHostByAddress
returns the correct host name for each ip address. However if I run the
application on SERVER1, both IP1 and IP2 return HOST1 as the hostname.

Help??

Thanks in advance...

Jerome Lavalley

Re: System.net.dns.gethostbyaddress by Jerome

Jerome
Thu Aug 26 16:10:17 CDT 2004

Is no one else using this method?

I thought this method was using DNS, but clearly its not. Its doing
something different for the local machine. Any clue how I can force it to
use DNS??