Asynchronous name resolution utilities for the futures and tokio-core crates.
Rust Shell
Latest commit 0aabfc0 Dec 20, 2016 @sbstp committed on GitHub Update README.md
Permalink
Failed to load latest commit information.
examples
src
.gitignore
.travis.yml
Cargo.toml
LICENSE-APACHE
LICENSE-MIT
README.md
docs.sh

README.md

tokio-dns

Asynchronous name resolution utilities for the futures and tokio-core crates. Look at the crate-level documentation for more details.

BuildStatus

Documentation

This library has been packaged to crates.io. Note that its name on crates.io is tokio-dns-unofficial, but the crate's name is tokio-dns (when using extern crate ...).

Demo

// Taken from examples/basic.rs

// connect using the built-in resolver.
let conn = tcp_connect("rust-lang.org:80", &lp.handle()).and_then(|sock| {
    println!("conncted to {}", sock.peer_addr().unwrap());
    Ok(())
});

License

MIT or Apache