1

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

CarmeloS
  • 7,868
  • 8
  • 56
  • 103

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
  • 858
  • 10
  • 20