Dns.Resolve / GetHostByAddress deprecated in c# 2?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nicopilami

    Dns.Resolve / GetHostByAddress deprecated in c# 2?

    Hello, i would like to retrieve the hostname from IP adress, but
    according to microsoft (VS 2008 Express), DNS.Resolve and
    GetHostByAddres s 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
  • =?Utf-8?B?YnJ1Y2UgYmFya2Vy?=

    #2
    RE: Dns.Resolve / GetHostByAddres s deprecated in c# 2?

    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
    GetHostByAddres s 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
    >

    Comment

    Working...