What if the application requires to send a query to a DNS server installed at a particular IP address.
how do i configure my DNS server in *hosts/**resolv**.**conf from the application ?* *** * On Wed, Feb 3, 2010 at 8:40 PM, Lewske Wada <[email protected]> wrote: > 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 [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

