Jef 5217e29fab
Add rustfmt to travis (#137)
* RFC styling-based `rustfmt.toml`

* Add rustfmt to travis

* Remove rustfmt.toml and actually fix too-long lines instead of ignoring them
2018-03-07 16:20:55 +01:00
..
2018-03-07 16:20:55 +01:00
2018-02-27 17:34:52 +01:00
2018-02-27 17:34:52 +01:00

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 /dns4/ or /dns6/ component, a DNS resolve will be performed and the component will be replaced with respectively an /ip4/ or an /ip6/ component.