Registry / networking / libp2p-dns

libp2p-dns

JSON →
library0.44.0rscratesunverified

DNS transport implementation for libp2p.

# Cargo.toml [dependencies] libp2p-dns = "0.44.0"
INSTALL
IMPORT
SIG · LIBP2P-DNS
L
libp2p-dns
networkingrustv0.44.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Transport
use libp2p_dns::Transport;

Create a DNS-aware transport that resolves DNS addresses for libp2p.

use libp2p_dns::Transport; use libp2p_core::transport::Transport as _; let transport = Transport::new(libp2p_tcp::tokio::Transport::new()); let addr = "/dns4/example.com/tcp/443".parse().unwrap(); let _listener = transport.listen_on(addr).unwrap();
Debug
Known issues
gotchaRequires an async runtime (tokio) and the tcp transport feature.
fix
Enable the 'tokio' feature on libp2p-tcp and use tokio runtime.
affects: >=0.44.0
Upgrade
Version history
0.44.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
libp2p-dns — cargo add libp2p-dns · libregistry