DNS lookup not supported on Android?
Solved
Mobile and Embedded
-
wrote on 9 Mar 2025, 12:17 last edited by
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. -
wrote on 10 Mar 2025, 10:04 last edited by
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 ?
-
wrote on 10 Mar 2025, 22:22 last edited by
-
AFAIK, Qt would use the C++ api for that task.
-
6/6