libp2p-mdns
Implementation of the libp2p mDNS discovery method
0.48.0
17M downloads/mo
#2323 most downloaded on crates.io
libp2p/rust-libp2p
What this package is like to depend on
Last release 1 years ago
27 Jun 2025
Release timing varies
gaps range from 2 weeks to 9 months
Most releases are documented
notes for 35 of 55 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
57 releases · first in 2019
0 releases in the last 12 months
see the full history below
Release timeline
57 releases · Jan 2019 to Jun 2025Releases
latest 57-
0.48.027 Jun 2025 -
0.47.014 Jan 2025 -
0.46.009 Aug 2024 -
0.45.122 Nov 2023 -
0.45.005 Nov 2023 -
0.44.020 Jun 2023 -
0.43.129 Mar 2023 -
0.43.024 Feb 2023Release notes
Open source →-
Update to
libp2p-corev0.39.0. -
Require the node's local
PeerIdto be passed into the constructor oflibp2p_mdns::Behaviour. See PR 3153. -
Update to
libp2p-swarmv0.42.0. -
Don't expire mDNS records when the last connection was closed. mDNS records will only be expired when the TTL is reached and the DNS record is no longer valid. See PR 3367.
-
-
0.42.025 Nov 2022Release notes
Open source →-
Update to
libp2p-corev0.38.0. -
Update to
libp2p-swarmv0.41.0. -
Update to
if-watch3.0.0and both renameTokioMdnstoBehaviourliving intokio::Behaviour, and move and renameMdnstoasync_io::Behaviour. See PR 3096. -
Remove the remaining
Mdnsprefixes from types as per discussion 2174. I.e theMdnsprefix has been removed from various types likeMdnsEvent. Users should prefer importing the mdns protocol as a module (use libp2p::mdns;), and refer to its types viamdns::. For example:mdns::Behaviourormdns::Event. -
Replace
GenMdns'sNetworkBehaviourimplementationinject_*methods with the newon_*methods. See PR 3011. -
Use
trust-dns-prototo parse DNS messages. See PR 3102. -
Update
rust-versionto reflect the actual MSRV: 1.62.0. See PR 3090.
-
-
0.41.014 Oct 2022Release notes
Open source →-
Remove default features. If you previously depended on
async-ioyou need to enable this explicitly now. See PR 2918. -
Update to
libp2p-corev0.37.0. -
Update to
libp2p-swarmv0.40.0. -
Fix a bug that could cause a delay of ~10s until peers would get discovered when using the tokio runtime. See PR 2939.
-
Removed the
lazy_staticdependency. See PR 2977. -
Update to
if-watchv2.0.0and thus theasyncmethodMdns::newandTokioMdns::newbecomes synchronous. See PR 2978.
-
-
0.40.007 Sep 2022 -
0.39.022 Aug 2022Release notes
Open source →-
Update to
libp2p-swarmv0.38.0. -
Update to
if-watchv1.1.1. -
Update to
libp2p-corev0.35.0.
-
-
0.38.005 Jul 2022 -
0.37.031 May 2022 -
0.36.004 Apr 2022 -
0.35.022 Feb 2022Release notes
Open source →-
Update to
libp2p-corev0.32.0. -
Update to
libp2p-swarmv0.34.0. -
Merge NetworkBehaviour's inject_* paired methods (see PR 2445).
-
-
0.34.027 Jan 2022Release notes
Open source →-
Update dependencies.
-
Use a random alphanumeric string instead of the local peer ID for mDNS peer name (see PR 2311).
Note that previous versions of
libp2p-mdnsexpect the peer name to be a valid peer ID. Thus they will be unable to discover nodes running this new version oflibp2p-mdns. -
Migrate to Rust edition 2021 (see PR 2339).
-
Fix generation of peer expiration event and listen on specified IP version (see PR 2359).
-
Support multiple interfaces (see PR 2383).
-
-
0.33.016 Nov 2021 -
0.32.001 Nov 2021 -
0.32.0-rc.115 Oct 2021 pre-releaseNothing published for this version
-
0.31.012 Jul 2021 -
0.30.206 May 2021 -
0.30.121 Apr 2021 -
0.30.013 Apr 2021 -
0.29.017 Mar 2021Release notes
Open source →-
Introduce
MdnsConfigwith configurable TTL of discovered peer records and configurable multicast query interval. The default query interval is increased from 20 seconds to 5 minutes, to significantly reduce bandwidth usage. To ensure timely peer discovery in the majority of cases, a multicast query is initiated whenever a change on a network interface is detected, which includes MDNS initialisation at node startup. If necessary the MDNS query interval can be reduced via theMdnsConfig. TheMdnsServicehas been removed from the public API, making it compulsory that all uses occur through theMdnsNetworkBehaviour. AnMdnsConfigmust now be given toMdns::new(). PR 1977. -
Update
libp2p-swarm.
-
-
0.28.115 Feb 2021 -
0.28.012 Jan 2021 -
0.27.018 Dec 2020 -
0.26.008 Dec 2020Release notes
Open source →-
Create multiple multicast response packets as required to avoid hitting the limit of 9000 bytes per MDNS packet. PR 1877.
-
Detect interface changes and join the MDNS multicast group on all interfaces as they become available. PR 1830.
-
Replace the use of macros for abstracting over
tokioandasync-stdwith the use ofasync-io. As a result there may now be an additional reactor thread running calledasync-iowhen usingtokio, with the futures still being polled by thetokioruntime. PR 1830.
-
-
0.25.025 Nov 2020 -
0.24.009 Nov 2020 -
0.23.016 Oct 2020Release notes
Open source →-
Update
libp2p-swarmandlibp2p-core. -
Double receive buffer to 4KiB. PR 1779.
-
-
0.22.009 Sep 2020 -
0.21.018 Aug 2020Release notes
Open source →-
Bump
libp2p-coreandlibp2p-swarmdependencies. -
Allow libp2p-mdns to use either async-std or tokio to drive required UDP socket (PR 1699).
-
-
0.20.001 Jul 2020 -
0.19.222 Jun 2020 -
0.19.125 May 2020Nothing published for this version
-
0.19.018 May 2020Nothing published for this version
-
0.18.009 Apr 2020Nothing published for this version
-
0.17.002 Apr 2020Nothing published for this version
-
0.16.014 Feb 2020Nothing published for this version
-
0.15.024 Jan 2020Nothing published for this version
-
0.14.0-alpha.107 Jan 2020 pre-releaseNothing published for this version
-
0.13.113 Nov 2019Nothing published for this version
-
0.13.006 Nov 2019Nothing published for this version
-
0.12.015 Aug 2019Nothing published for this version
-
0.11.019 Jul 2019Nothing published for this version
-
0.10.025 Jun 2019Nothing published for this version
-
0.9.004 Jun 2019Nothing published for this version
-
0.8.015 May 2019Nothing published for this version
-
0.7.023 Apr 2019Nothing published for this version
-
0.6.029 Mar 2019Nothing published for this version
-
0.5.013 Mar 2019Nothing published for this version
-
0.4.020 Feb 2019Nothing published for this version
-
0.3.030 Jan 2019Nothing published for this version
-
0.2.010 Jan 2019Nothing published for this version
-
0.1.002 Jan 2019Nothing published for this version