PHPackages                             clue/mdns-react - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. clue/mdns-react

ActiveLibrary[Queues &amp; Workers](/categories/queues)

clue/mdns-react
===============

Simple, async multicast DNS (mDNS) resolver for zeroconf networking, built on top of ReactPHP.

v0.2.0(10y ago)162.6k7[2 issues](https://github.com/clue/reactphp-mdns/issues)MITPHPPHP &gt;=5.3

Since Mar 26Pushed 2y ago4 watchersCompare

[ Source](https://github.com/clue/reactphp-mdns)[ Packagist](https://packagist.org/packages/clue/mdns-react)[ Docs](https://github.com/clue/php-mdns-react)[ RSS](/packages/clue-mdns-react/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

clue/reactphp-mdns
==================

[](#cluereactphp-mdns)

[![CI status](https://github.com/clue/reactphp-mdns/actions/workflows/ci.yml/badge.svg)](https://github.com/clue/reactphp-mdns/actions)[![installs on Packagist](https://camo.githubusercontent.com/416d5ed7fbfe7e2be43ddbf65d1e6694066a51a1115d3fd932ea14c9fdd08635/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c75652f6d646e732d72656163743f636f6c6f723d626c7565266c6162656c3d696e7374616c6c732532306f6e2532305061636b6167697374)](https://packagist.org/packages/clue/mdns-react)

Simple, async multicast DNS (mDNS) resolver for zeroconf networking, built on top of [ReactPHP](https://reactphp.org/).

[Multicast DNS](http://www.multicastdns.org/) name resolution is commonly used as part of [zeroconf networking](https://en.wikipedia.org/wiki/Zero-configuration_networking). It is used by Mac OS X (Bonjour), many Linux distributions (Avahi) and quite a few other networking devices such as printers, camers etc. to resolve hostnames of your local LAN clients to IP addresses.

This library implements the mDNS protocol as defined in [RFC 6762](https://tools.ietf.org/html/rfc6762). Note that this protocol is related to, but independent of, DNS-Based Service Discovery (DNS-SD) as defined in [RFC 6763](https://tools.ietf.org/html/rfc6763).

**Table of Contents**

- [Quickstart example](#quickstart-example)
- [Usage](#usage)
    - [Factory](#factory)
        - [createResolver()](#createresolver)
    - [Resolver](#resolver)
        - [Promises](#promises)
        - [Blocking](#blocking)
- [Install](#install)
- [Tests](#tests)
- [License](#license)
- [More](#more)

> Note: This project is in beta stage! Feel free to report any issues you encounter.

Quickstart example
------------------

[](#quickstart-example)

Once [installed](#install), you can use the following code to look up the address of a local domain name:

```
