DNS TXT Record Lookup with J2ME

Discussion in 'Java' started by David, Jun 25, 2004.

  1. David

    David Guest

    Hi. I'm not a J2ME programmer, but I have a question about what's
    possible.

    If I wanted to look up a DNS TXT record (as opposed to, say, an A
    record or an MX record) in Java, I'd use JNDI.

    Suppose I wanted to do the same thing with J2ME running on a mobile
    phone, say. How would I do that? I see that MIDP 2.0 has a
    UDPDatagramConnection class, but is there anything higher level in
    MIDP or CLDC, etc. ?

    Thanks!

    -David
    David, Jun 25, 2004
    #1
    1. Advertising

  2. David wrote:

    > Hi. I'm not a J2ME programmer, but I have a question about what's
    > possible.
    >
    > If I wanted to look up a DNS TXT record (as opposed to, say, an A
    > record or an MX record) in Java, I'd use JNDI.
    >
    > Suppose I wanted to do the same thing with J2ME running on a mobile
    > phone, say. How would I do that? I see that MIDP 2.0 has a
    > UDPDatagramConnection class, but is there anything higher level in
    > MIDP or CLDC, etc. ?


    You have HTTP. Your best bet would be to offload the actual work to a
    servlet and just have the MIDlet invoke said servlet and display the result
    to the user.

    --
    /**
    * @author Darryl L. Pierce <>
    * @see The J2ME FAQ <http://mypage.org/mcpierce/j2mefaq.html>
    * @quote "What do you care what others think, Mr. Feynman?"
    * @geek echo '$_ = "Jvtu bopuifs Pfsm ibdlfs."; y/a-z/za-y/; print' |
    perl
    */
    Darryl L. Pierce, Jun 25, 2004
    #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. martin
    Replies:
    3
    Views:
    8,822
    viper
    Oct 29, 2008
  2. =?Utf-8?B?RGFuIE5hc2g=?=

    reverse DNS lookup

    =?Utf-8?B?RGFuIE5hc2g=?=, Oct 14, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    456
    =?Utf-8?B?RGFuIE5hc2g=?=
    Oct 14, 2004
  3. Madhur Ahuja
    Replies:
    1
    Views:
    729
    Paul Lutus
    Aug 29, 2004
  4. Sam Roberts
    Replies:
    0
    Views:
    196
    Sam Roberts
    Mar 20, 2005
  5. gavino
    Replies:
    2
    Views:
    157
    Ted Zlatanov
    Jul 27, 2006
Loading...

Share This Page