Dns.Resolve / GetHostByAddress deprecated in c# 2?

Discussion in 'ASP .Net' started by Nicopilami, Apr 2, 2008.

  1. Nicopilami

    Nicopilami Guest

    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
     
    Nicopilami, Apr 2, 2008
    #1
    1. Advertising

  2. Nicopilami

    bruce barker Guest

    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
    >
     
    bruce barker, Apr 2, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sven
    Replies:
    5
    Views:
    3,286
    Rutger Smit
    Sep 3, 2004
  2. =?Utf-8?B?SmVk?=

    GetHostByAddress runs slow

    =?Utf-8?B?SmVk?=, Dec 15, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,395
    bruce barker
    Dec 15, 2004
  3. Barney Barumba
    Replies:
    0
    Views:
    580
    Barney Barumba
    Jul 23, 2003
  4. Mike Kansky

    DNS Resolve IP to HostName

    Mike Kansky, Jun 6, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    5,081
    Mike Kansky
    Jun 6, 2006
  5. Replies:
    1
    Views:
    10,358
Loading...

Share This Page