Hi Radhika,

radhika wrote:
> Hi All,
>
> Am a  beginner in this area. I am trying to find out how a DNS query
> is sent from the android device.
>
> Am unable to locate the code.
>
> Can someone help me by showing me the code where a DNS query is sent.
>
> For example, may be from some application like browser?
>   
I believe you simply have to use InetAddress.getByName(String Host) ?
Like I did use InetAddress's getLocalHost() in resetConnection()
funcion in my local app? :

http://run.sh/repos/Runftp/src/sh/run/Runftp/FtpConsoleText.java

Anyway the Socket() automatically resolves the hostname when given.

Ryu

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to