System.net.dns.gethostbyaddress

  • Thread starter Jerome Lavalley, MCSE
  • 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
 
J

Jerome Lavalley, MCSE

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top