DNS TXT Record Lookup with J2ME

D

David

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
 
D

Darryl L. Pierce

David said:
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 <[email protected]>
* @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
*/
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top