BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Reply
 
LinkBack Thread Tools
  (#1 (permalink)) Old
plevintampabay Offline
Thumbs Must Hurt
 
Posts: 58
Join Date: Jun 2008
Model: 8820
PIN: N/A
Carrier: AT&T
Default How can I do a DNS Lookup in Java? - 09-03-2009, 08:24 PM

The BlackBerry API does not have java.net.InetAddress.getByName(). Yet the WiFi Diagnostics can do a DNS Lookup.

So how do I do the DNS Lookup from Java code?

Thanks,
Paul
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
itsteju Offline
Knows Where the Search Button Is
 
Posts: 33
Join Date: Apr 2009
Model: 8100
PIN: N/A
Carrier: vodafone
Default 11-07-2009, 05:35 AM

Even Im looking for same...Did u find the solution...? Please help.
   
Reply With Quote
  (#3 (permalink)) Old
plevintampabay Offline
Thumbs Must Hurt
 
Posts: 58
Join Date: Jun 2008
Model: 8820
PIN: N/A
Carrier: AT&T
Default 11-07-2009, 02:51 PM

What I discovered is that the DNS lookup is done internally. In Windows we typically take a domain name, do a lookup to get an IP and then open a socket to that IP. In the BB, just open a socket to the domain name and port. It will internally do the lookup and open the IP.
   
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright © 2004-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.