#tetcoin #crypto #framework #blockchain

tet-libp2p-dns

DNS transport implementation for tet-libp2p

Show the crate…

1 unstable release

0.27.0 Mar 15, 2021

#75 in #tetcore

26 downloads per month
Used in tet-libp2p

MIT license

460KB
8K SLoC

tet-libp2p-dns

This crate provides the type DnsConfig that allows one to resolve the /dns4/ and /dns6/ components of multiaddresses.

Usage

In order to use this crate, create a DnsConfig with one of its constructors and pass it an implementation of the Transport trait.

Whenever we want to dial an address through the DnsConfig and that address contains a /dns/, /dns4/, or /dns6/ component, a DNS resolve will be performed and the component will be replaced with /ip4/ and/or /ip6/ components.

Dependencies

~8–14MB
~286K SLoC