End Google Ads 201810 - BS.net 01 --> Hi All,

I'm just working with the Dns class and have a need to use IP addresses. At the moment I'm just retrieving a list of IP addresses using the GetHostByName method and then validing the format of each IP address.

The issue is that I'm then going to use this as a base for producing some service endpoints. I want to make sure that the IP address I use is correct for the machines identity on our network rather than just grabbing the first IP address in the list which seems a bit random.

Should I be calling a domain controller and confirming with it that the IP address I plan to use is the 'correct' one?

Cheers,

Jammer
My Blog | Article(s)