Dns.Resolve / GetHostByAddress deprecated in c# 2?

  • Thread starter Thread starter Nicopilami
  • Start date Start date
N

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
 
GetHostEntry returns the alias list for an ipaddress, which is all dns will
return from an ipaddress (reverse lookup).


-- bruce (sqlwork.com)
 
Back
Top