Skip to content
Discussion options

You must be logged in to vote

pycares 5.0.1 is now supported on Android and iOS: https://pypi.flet.dev/pycares

aiodns needs no recipe of its own — it is pure Python and installs straight from PyPI — so both together is all it takes:

dependencies = [
    "flet",
    "aiodns",
    "pycares",
]

Note

One thing to know before you wire it up: on Android you have to name your nameservers explicitlyaiodns.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…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ndonkoHenri
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants