Dns.Resolve / GetHostByAddress deprecated in c# 2?
am 02.04.2008 12:49:14 von Nicopilami
Hello, i would like to retrieve the hostname from IP adress, but
according to microsoft (VS 2008 Express), DNS.Resolve and
GetHostByAddress methods seem to be deprecated, and all i found on
google was people who wrote that the new method GetHostEntry didn't
work for what i do, because returned IPadress instead of the hostname.
So my question is : do you know a method for what i would like to do,
that is working well, and that is not deprecated ?
thx
Nico
RE: Dns.Resolve / GetHostByAddress deprecated in c# 2?
am 02.04.2008 18:00:03 von brucebarker
GetHostEntry returns the alias list for an ipaddress, which is all dns will
return from an ipaddress (reverse lookup).
-- bruce (sqlwork.com)
"Nicopilami" wrote:
> Hello, i would like to retrieve the hostname from IP adress, but
> according to microsoft (VS 2008 Express), DNS.Resolve and
> GetHostByAddress methods seem to be deprecated, and all i found on
> google was people who wrote that the new method GetHostEntry didn't
> work for what i do, because returned IPadress instead of the hostname.
>
> So my question is : do you know a method for what i would like to do,
> that is working well, and that is not deprecated ?
>
>
> thx
> Nico
>