aiohttp-asyncmdnsresolver
An async resolver for aiohttp that supports MDNS
Decision gist · record as of 2026-08-14
Yes. The package solves a specific, real problem (mDNS resolution in aiohttp) with low install friction, active maintenance, no known vulnerabilities, and a permissive license. Install it if you need to resolve .local hostnames or discover services on a local network; skip it if your application only uses standard DNS.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; resolver must be explicitly closed after use.
- Low friction: pure Python wheel with three runtime dependencies (aiohttp, aiodns, zeroconf).
- Actively maintained with recent releases and no known vulnerabilities.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in commercial and proprietary projects with minimal restrictions.
last release 2026-05-20 (86 days) · last repo commit 2026-08-14 · 2 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 555,806 downloads/mo, #6,024 on PyPI
Alternatives
Verify before relying
import asyncio
import aiohttp
from aiohttp_asyncmdnsresolver.api import AsyncMDNSResolver
async def main():
resolver = AsyncMDNSResolver()
try:
connector = aiohttp.TCPConnector(resolver=resolver)
async with aiohttp.ClientSession(connector=connector) as session:
async with session.get('http://example.local.') as response:
print(response.status)
finally:
await resolver.close()
asyncio.run(main())- Whether aiodns or zeroconf have their own system-level dependencies (e.g., compiled libraries or network services).
- Performance characteristics when resolving many concurrent mDNS queries or handling network timeouts.
What it is and what it does
aiohttp-asyncmdnsresolver is a resolver plugin for aiohttp's TCPConnector that adds support for multicast DNS (mDNS) name resolution. It wraps the zeroconf library to resolve .local domain names asynchronously, enabling aiohttp clients to discover and connect to services advertised on local networks via mDNS. The package includes two resolver classes: AsyncMDNSResolver for mDNS-only resolution, and AsyncDualMDNSResolver for concurrent mDNS and regular DNS queries, returning the first successful result.
The package is designed for scenarios where you need to connect to devices or services on a local network that advertise themselves via mDNS (common in IoT, printers, and home automation). It integrates directly into aiohttp's connection pipeline by passing a resolver instance to TCPConnector, making it transparent to the rest of your aiohttp code. The resolver must be explicitly closed after use since aiohttp does not own it.
Use it for
- Connect to IoT devices or smart home services advertised on the local network via mDNS (e.g., printers, cameras).
- Build a service discovery client that resolves .local hostnames without relying on external DNS servers.
- Implement fallback resolution for .local names that may exist in both mDNS and unicast DNS using AsyncDualMDNSResolver.
- Integrate mDNS support into aiohttp-based microservices running on local networks without DNS infrastructure.
- Test aiohttp clients against local services during development using mDNS-based hostnames.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package solves a specific, real problem (mDNS resolution in aiohttp) with low install friction, active maintenance, no known vulnerabilities, and a permissive license. Install it if you need to resolve .local hostnames or discover services on a local network; skip it if your application only uses standard DNS.
Install
aiohttp-asyncmdnsresolver on PyPI
Before you install
Low friction: pure Python wheel with three runtime dependencies (aiohttp, aiodns, zeroconf). Actively maintained with recent releases and no known vulnerabilities.
Requires Python 3.10 or later; resolver must be explicitly closed after use.
License in practice
Apache-2.0 permissive license allows use in commercial and proprietary projects with minimal restrictions.
Quickstart
import asyncio
import aiohttp
from aiohttp_asyncmdnsresolver.api import AsyncMDNSResolver
async def main():
resolver = AsyncMDNSResolver()
try:
connector = aiohttp.TCPConnector(resolver=resolver)
async with aiohttp.ClientSession(connector=connector) as session:
async with session.get('http://example.local.') as response:
print(response.status)
finally:
await resolver.close()
asyncio.run(main())
Verify before relying
- Whether aiodns or zeroconf have their own system-level dependencies (e.g., compiled libraries or network services).
- Performance characteristics when resolving many concurrent mDNS queries or handling network timeouts.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesaiodnsaiohttpzeroconf |
| Maintenance | Actively maintained 86 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 555,806 / month, #6,024 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: AsyncIOFramework :: aiohttpIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Internet :: WWW/HTTPTyping :: Typed |
Evidence: aiohttp_asyncmdnsresolver-0.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “aiohttp mdns resolver”
- aiohttp-asyncmdnsresolverProvides an async resolver for aiohttp that enables mDNS name…
- aioairqAsynchronous Python library for retrieving real-time and historical…
- zeroconfDiscovers and registers services on local networks using multicast…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also zeroconf · aiodns · nslookup · aiohttp-client-cache · aiohttp_socks · pycares · aioairq · aiohttp-retry · aiohttp-asgi-connector