DNS lookup not supported on Android?
Unsolved
Mobile and Embedded
-
I am trying to do a lookup of TXT records in DNS using QDnsLookup in Qt6.8.2
On Linux my code works fine, but on Android I get an error: Not yet supported on this OSWhy is that?
Is it really not supported?? -
Hi,
From a look at the concerned code, it's indeed not yet supported on Android.
As for why, I don't know. -
I delved a bit in the Android API and found that the DnsResolver in Android only supports A and AAAA records. Perhaps that is why.
As a work around, probably permanent solution, I am now using DNS over HTTP. -
Do you mean the Java API or the native API ?
-
-
AFAIK, Qt would use the C++ api for that task.