How do I make a DNS query to convert a host name to an IP address in Android app?
Asked
Active
Viewed 574 times
1
-
@ElliottFrisch I'm new to Android and I googled "Android make DNS query", sadly I didn't find any good answer. – CarmeloS Aug 11 '14 at 03:15
-
What kind of DNS query do you want to make? And try Java DNS query. – Elliott Frisch Aug 11 '14 at 03:17
1 Answers
0
I know that is a late late response. But I came here looking the same problem then I leave this solution for future. My solution was using the google's dns service. More specifically using the json api version:
For example, if you wish to know the MX record for brosoft.com.ar then you should make the following http requests:

Nico
- 858
- 10
- 20