On Mon, Sep 14, 2009 at 6:06 AM, lbcoder <[email protected]> wrote:

>
> There are two DNS sets on an android device.
> The "linux" set and the "android" set.
> You can find the DNS servers used by linux by checking the contents
> of /etc/resolv.conf
> The android dns servers can be found by "getprop".
> They do not match.
> The android dns servers are set by dhcp.
> The linux dns servers are more like fallbacks and are set statically.
>
>
This is correct, but it's only an implementation detail that should not
affect typical application developers (even the C library DNS resolver uses
the
system properties to know which DNS servers to talk to), so there should be
no difference between native and VM code when it comes to DNS resolution.


>
> On Sep 14, 2:56 am, CodePupil <[email protected]> wrote:
> > Hi All,
> >
> > I'm facing strange problem in resolving remote hostname.
> > I have an application which needs to resolve some remote hostname in
> > order to connect to it, and If I start this application using execve()
> > call, the application doesn't resolve hostname, gethostbyname()
> > returns NULL. If I execute the application directly, it's able to
> > resolve the host name but if it's executed using execve() call, it
> > doesn't.
> > Same approach is working fine on Linux machine but on Android platform
> > it's not able to work.
> >
> > On Linux:
> > execve()  ----->  application()  ------> Works
> > app()       -----> Works
> >
> > On Android:
> > execve()  ----->  application()  ------> Doesn't works   -------> ???
> > app()       -----> Works
> >
> _______________________________________________________________________________
> >
> > Could anybody please throw some light on the matter ?
> >
> > Thanks!
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Android Discuss" 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-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to