#dns-sd #zeroconf #mdns #broadcast

libmdns

mDNS Responder library for building discoverable LAN services in Rust

18 releases

0.7.2 Sep 11, 2022
0.7.0 May 8, 2022
0.6.2 Sep 6, 2021
0.6.1 Apr 9, 2021
0.2.3 Jun 21, 2018

#1 in #mdns

Download history 3243/week @ 2022-06-04 3926/week @ 2022-06-11 2654/week @ 2022-06-18 2700/week @ 2022-06-25 2856/week @ 2022-07-02 2900/week @ 2022-07-09 3416/week @ 2022-07-16 2952/week @ 2022-07-23 2693/week @ 2022-07-30 2454/week @ 2022-08-06 2478/week @ 2022-08-13 2030/week @ 2022-08-20 1864/week @ 2022-08-27 2259/week @ 2022-09-03 3421/week @ 2022-09-10 2499/week @ 2022-09-17

10,319 downloads per month
Used in 33 crates (7 directly)

MIT license

86KB
2K SLoC

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.

Usage

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

[dependencies]
libmdns = "0.7"

See the example for use within code.

Dependencies

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.

Contributing

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

On the whole this library works. There's 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 to a Pull Request with any changes that improve this project for your own uses without sacrificing platform support, I'll do my best to review merge and release.

Dependencies

~3.5–9.5MB
~155K SLoC