Description
aiodns is a simple DNS resolver for Python's asyncio. It does asynchronous DNS lookups using pycares, and the README's example creates a DNSResolver, awaits query_dns for a host and record type, and prints the addresses in the answer. The resolver can query A, AAAA, ANY, CAA, CNAME, MX, NAPTR, NS, PTR, SOA, SRV and TXT records. The DNSResolver class provides query_dns(host, type) along with other functions that the API section of the README describes. The project is hosted in the aio-libs organization on GitHub, and its README shows CI and PyPI badges, which point to the package page and the test workflow. aiodns is for Python developers who work with asyncio and need DNS results inside async code, without writing their own resolver on top of pycares.…
Highlights
- Asynchronous DNS lookups for asyncio
- Built on pycares
- Supports A, AAAA, MX, TXT and more
- DNSResolver query_dns API
- Short example in the README
Ratings & Reviews
No ratings yet
Be the first to rate Aiodns.
People also visit
Aiodns FAQ
What is aiodns?
A simple DNS resolver for Python's asyncio, built on pycares.
Which record types can it query?
The README lists A, AAAA, ANY, CAA, CNAME, MX, NAPTR, NS, PTR, SOA, SRV and TXT.
How do I use it?
Create a DNSResolver and await resolver.query_dns with a host name and a record type. The README has a complete example using google.com and an A record.
Is it open source?
Yes. It is hosted in the aio-libs organization on GitHub.
What are the best Aiodns alternatives?
Popular alternatives to Aiodns include dnspython, DNS and DNS. See all Aiodns alternatives
