{"categories":[{"label":"Networking","url":"https://skillfed.io/packages/category/system-networking"}],"enrichment":{"capability":"Provides asynchronous DNS resolution for asyncio applications using the pycares library, supporting query types including A, AAAA, MX, CNAME, TXT, and others.","skillfed_tags":["asyncio","dns-resolver","networking"],"use_cases":["Resolve hostnames to IP addresses asynchronously in web servers or network clients without blocking the event loop.","Perform bulk DNS lookups (MX, TXT, CNAME records) in background tasks or monitoring tools.","Implement reverse DNS lookups (gethostbyaddr) in logging or security audit systems.","Build DNS-aware service discovery or load balancing logic that queries multiple record types.","Test DNS resolution behavior in asyncio-based test suites using the async context manager pattern."],"what_it_does":"aiodns wraps pycares to provide asynchronous DNS resolution within asyncio applications. Instead of blocking on DNS lookups, it returns futures that resolve when the DNS query completes, allowing your event loop to handle other work concurrently. The main API is the DNSResolver class, which offers methods like query_dns() for standard lookups, gethostbyaddr() for reverse lookups, getaddrinfo() for socket-style resolution, and getnameinfo() for address-to-hostname conversion.\n\nThe package supports a wide range of DNS record types (A, AAAA, MX, CNAME, TXT, SRV, NS, SOA, CAA, NAPTR, PTR, ANY) and returns results as pycares DNSResult objects with answer, authority, and additional sections. Version 4.x introduced a new query_dns() method returning native pycares types; the older query() method remains for backward compatibility but is deprecated. The resolver is designed to be long-lived and reused across many queries rather than created and destroyed frequently.","worth_installing":"Yes. aiodns is a stable, actively maintained package (Production/Stable status, recent release, 594 GitHub stars) with low install friction and no known vulnerabilities. It fills a clear need for non-blocking DNS in asyncio applications. The MIT license is permissive. Install it if you need asynchronous DNS resolution in an asyncio codebase; the single dependency (pycares) is well-established. Avoid only if you have no asyncio requirement or prefer the standard library's synchronous socket.getaddrinfo()."},"id":"aiodns","links":{"html":"https://skillfed.io/packages/aiodns","md":"https://skillfed.io/packages/aiodns.md","pypi":"https://pypi.org/project/aiodns/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-20","license_spdx":"MIT","license_treatment":"permissive","name":"aiodns","python_support":"supports_current","summary":"Simple DNS resolver for asyncio"},"popularity":{"monthly_downloads":20518305,"position":1034,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"4.0.4"}
