pycares #6805
|
Hello Flet team! We are using Package Details:
Could we get Thank you! |
Replies: 2 comments
|
dependencies = [
"flet",
"aiodns",
"pycares",
]Note One thing to know before you wire it up: on Android you have to name your nameservers explicitly — Give it a try and let us know! 🤟🏿 |
|
Thanks very much 🙏🏾 |
pycares5.0.1 is now supported on Android and iOS: https://pypi.flet.dev/pycaresaiodnsneeds no recipe of its own — it is pure Python and installs straight from PyPI — so both together is all it takes:Note
One thing to know before you wire it up: on Android you have to name your nameservers explicitly —
aiodns.DNSResolver(nameservers=["1.1.1.1", "8.8.8.8"]). Android 8 removed the system properties c-ares reads and the replacement is Java-only, so without it every lookup fails against a loopback default. iOS picks up the system resolvers by itself. The README explains why, and the example shows both outcomes on de…