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. Advertisements

  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. Advertisements

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,452
    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,604
    bruce barker
    Dec 15, 2004
  3. Barney Barumba
    Replies:
    0
    Views:
    759
    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,300
    Mike Kansky
    Jun 6, 2006
  5. Replies:
    1
    Views:
    11,075
  6. 星星

    smtplib send mail dns resolve problem

    星星, Oct 19, 2009, in forum: Python
    Replies:
    2
    Views:
    895
    星星
    Oct 20, 2009
  7. Sam Roberts
    Replies:
    0
    Views:
    407
    Sam Roberts
    Mar 20, 2005
  8. gavino
    Replies:
    2
    Views:
    344
    Ted Zlatanov
    Jul 27, 2006
Loading...