System.net.dns.gethostbyaddress

  • Thread starter Thread starter Jerome Lavalley, MCSE
  • Start date Start date
J

Jerome Lavalley, MCSE

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
 
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??
 
Back
Top