1

How do I make a DNS query to convert a host name to an IP address in Android app?

CarmeloS
  • 7,658
  • 6
  • 54
  • 102

1 Answers1

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:

https://dns.google/resolve?name=brosoft.com.ar&type=a

Nico
  • 808
  • 9
  • 19