domain name look up?

Discussion in 'Java' started by Gordon Freeman, Jul 22, 2005.

  1. Hello guys,

    Is there a JAVA api that is similiar to gethostbyname() in C? i want to
    check a string to see if it can be resolved to IP address. What API
    should i use?

    Thanks

    --
    USENET æ–°èžçµ„ ãƒãƒƒãƒˆãƒ‹ãƒ¥ãƒ¼ã‚¹ ニュースグループ 유즈넷 קבוצת דיון

    http://www.cyberjustice.org/
    Gordon Freeman, Jul 22, 2005
    #1
    1. Advertising

  2. Gordon Freeman

    Uwe Seimet Guest

    Gordon Freeman wrote:

    > Is there a JAVA api that is similiar to gethostbyname() in C? i want to
    > check a string to see if it can be resolved to IP address. What API
    > should i use?


    java.net.InetAddress.getByName()

    --
    -----------------------------------------------------------------------
    Dr. Uwe Seimet http://www.seimet.de
    Uwe Seimet, Jul 22, 2005
    #2
    1. Advertising

  3. Gordon Freeman

    Roedy Green Guest

    On Sat, 23 Jul 2005 00:13:07 +0800, Gordon Freeman
    <> wrote or quoted :

    >Is there a JAVA api that is similiar to gethostbyname() in C? i want to
    >check a string to see if it can be resolved to IP address. What API
    >should i use?

    see
    http://mindprod.com/jgloss/dns.html
    http://mindprod.com/jgloss/ip.html
    for an introduction to various methods.

    --
    Bush crime family lost/embezzled $3 trillion from Pentagon.
    Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
    http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm

    Canadian Mind Products, Roedy Green.
    See http://mindprod.com/iraq.html photos of Bush's war crimes
    Roedy Green, Jul 23, 2005
    #3
  4. Uwe Seimet 写é“:
    > Gordon Freeman wrote:
    >
    >
    >>Is there a JAVA api that is similiar to gethostbyname() in C? i want to
    >>check a string to see if it can be resolved to IP address. What API
    >>should i use?

    >
    >
    > java.net.InetAddress.getByName()
    >


    Thanks.

    --
    USENET æ–°èžçµ„ ãƒãƒƒãƒˆãƒ‹ãƒ¥ãƒ¼ã‚¹ ニュースグループ 유즈넷 קבוצת דיון

    http://www.cyberjustice.org/
    Gordon Freeman, Jul 24, 2005
    #4
    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. Joey
    Replies:
    0
    Views:
    339
  2. inhahe
    Replies:
    3
    Views:
    2,325
    Diez B. Roggisch
    Jan 28, 2005
  3. Andy B
    Replies:
    1
    Views:
    295
    Evan Camilleri
    Jul 29, 2008
  4. Chem Leakhina
    Replies:
    2
    Views:
    132
    Robert Klemme
    Jun 23, 2009
  5. Replies:
    4
    Views:
    161
Loading...

Share This Page