C# Programming
03-28-2009, 04:12 PM
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 (http://jammer.biz/blog2/) | Article(s) (http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=4664921)
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 (http://jammer.biz/blog2/) | Article(s) (http://www.codeproject.com/script/Articles/MemberArticles.aspx?amid=4664921)