
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
aiohttp-asyncmdnsresolver
Advanced tools
.. image:: https://github.com/aio-libs/aiohttp-asyncmdnsresolver/actions/workflows/ci-cd.yml/badge.svg :target: https://github.com/aio-libs/aiohttp-asyncmdnsresolver/actions?query=workflow%3ACI :align: right
.. image:: https://codecov.io/gh/aio-libs/aiohttp-asyncmdnsresolver/branch/main/graph/badge.svg :target: https://codecov.io/gh/aio-libs/aiohttp-asyncmdnsresolver
.. image:: https://badge.fury.io/py/aiohttp-asyncmdnsresolver.svg :target: https://badge.fury.io/py/aiohttp-asyncmdnsresolver
.. image:: https://readthedocs.org/projects/aiohttp-asyncmdnsresolver/badge/?version=latest :target: https://aiohttp-asyncmdnsresolver.readthedocs.io
.. image:: https://img.shields.io/pypi/pyversions/aiohttp-asyncmdnsresolver.svg :target: https://pypi.org/p/aiohttp-asyncmdnsresolver
.. image:: https://img.shields.io/matrix/aio-libs:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat :target: https://matrix.to/#/%23aio-libs:matrix.org :alt: Matrix Room — #aio-libs:matrix.org
.. image:: https://img.shields.io/matrix/aio-libs-space:matrix.org?label=Discuss%20on%20Matrix%20at%20%23aio-libs-space%3Amatrix.org&logo=matrix&server_fqdn=matrix.org&style=flat :target: https://matrix.to/#/%23aio-libs-space:matrix.org :alt: Matrix Space — #aio-libs-space:matrix.org
This module provides an aiohttp
resolver that supports mDNS, which uses the zeroconf
library
to resolve mDNS queries.
For full documentation please read https://aiohttp-asyncmdnsresolver.readthedocs.io.
.. code-block:: console
$ pip install aiohttp-asyncmdnsresolver
.. code-block:: python
import asyncio import aiohttp from aiohttp_asyncmdnsresolver.api import AsyncMDNSResolver
async def main(): resolver = AsyncMDNSResolver() connector = aiohttp.TCPConnector(resolver=resolver) async with aiohttp.ClientSession(connector=connector) as session: async with session.get('http://example.com') as response: print(response.status) async with session.get('http://xxx.local.') as response: print(response.status)
asyncio.run(main())
The documentation is located at https://aiohttp-asyncmdnsresolver.readthedocs.io.
The project is hosted on GitHub_
Please file an issue on the bug tracker <https://github.com/aio-libs/aiohttp-asyncmdnsresolver/issues>
_ if you have found a bug
or have some suggestion in order to improve the library.
It's Apache 2 licensed and freely available.
.. _GitHub: https://github.com/aio-libs/aiohttp-asyncmdnsresolver
FAQs
An async resolver for aiohttp that supports MDNS
We found that aiohttp-asyncmdnsresolver demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.