Hi All,
Can someone please point out the code in android source code, where a DNS query is being made?
I tried to locate the code where the actual DNS query is sent from an application, but i couldn't.
Any help would be great.
Thanks in advance
Hi All,
Can someone please point out the code in android source code, where a DNS query is being made?
I tried to locate the code where the actual DNS query is sent from an application, but i couldn't.
Any help would be great.
Thanks in advance
Normally you don't make an explicit DNS query in Java.
When you create a Socket
you can pass a hostname and the Java VM gets the OS to perform the DNS query on its behalf. This is why you don't need to configure DNS settings for your Java VM.
There are pure Java implementations of DNS, but I don't believe any of these are supplied with Android.