Re: Dns.GetHostEntry
Peter Osucha <[email protected]> Tue, 19 Jun 2007 16:38:34 -0400
| Newsgroups | gmane.comp.windows.devel.dotnet.cx |
|---|---|
| Message-ID | <[email protected]> |
After a bit more looking, it seems that the GetHostEntry method should not be used for 'reverse' lookup. Hmmmmm. -----Original Message----- From: Discussion relating to the specifics of the C# and Managed C++ languages [mailto:[email protected]] On Behalf Of Peter Osucha Sent: Tuesday, June 19, 2007 4:25 PM To: [email protected] Subject: [DOTNET-CX] Dns.GetHostEntry One more... I have been looking around on the internet for a reason for this behavior - nothing is popping up. I am calling the Dns.GetHostEntry(MyIPAddress) method to fill an IPHostEntry object. I continue to be puzzled by the result - the IPHostEntry object never has the same IPAddress as the address passed in (MyIPAddress). If I pass the MyHostName instead of the MyIPAddress, then the correct IP Address is returned. If anyone else has seen this behavior, what is its reason, please? Peter=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D This list is hosted by DevelopMentor=AE http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com