#dns-sd #zeroconf


mDNS Responder library for building discoverable LAN services in Rust

22 releases

0.7.5 Mar 18, 2023
0.7.3 Nov 7, 2022
0.7.0 May 8, 2022
0.6.3 Feb 11, 2023
0.2.3 Jun 21, 2018

#5 in #mdns

Download history 4415/week @ 2023-06-06 4170/week @ 2023-06-13 4238/week @ 2023-06-20 3930/week @ 2023-06-27 5503/week @ 2023-07-04 4482/week @ 2023-07-11 4471/week @ 2023-07-18 4240/week @ 2023-07-25 4861/week @ 2023-08-01 4233/week @ 2023-08-08 3940/week @ 2023-08-15 5019/week @ 2023-08-22 4840/week @ 2023-08-29 4451/week @ 2023-09-05 5494/week @ 2023-09-12 4924/week @ 2023-09-19

20,551 downloads per month
Used in 46 crates (9 directly)

MIT license


libmdns - Rust mDNS responder

libmdns is a pure rust implementation of the mDNS (RFC 6762) and DNS-SD (RFC 6763) protocols. This means that in response to UDP broadcasted DNS requests on port 5353, libmdns will broadcast a DNS response advertising the services you register.

Built with the tokio async runtime, libmdns can run in a dedicated thread, or be spawned with an existing tokio Handle.


To use it, add this to your Cargo.toml:

libmdns = "0.7"

See the example for use within code.


libmdns' oldest supported Rust toolchain is 1.46.0, however it may compile fine on older versions of rust.

We hold no strong garantees for sticking to a Minimum Supported Rust Version. Please open an issue on GitHub if you need support for older compilers or different platforms.

libmdns is built with the help of the tokio 1.0 runtime.

Provenance Note

This project originally started as a fork of plietar/rust-mdns.


Thankyou for considering contributing, any and all contributions are happily welcomed!

On the whole this library works. There is no-one actively seeking to improve it for it's own sake, and issues may not be immediately fixed. However if you're willing to open a Pull Request with changes to improve this project for your own uses in a way that doesn't sacrifice existing platform and feature support, I'll do my best to review, merge and release.


~167K SLoC