c-ares-resolver

DNS resolvers built on c-ares, for asynchronous DNS requests.

This crate provides three resolver types - the Resolver, the FutureResolver, and the BlockingResolver:

Build Status Build status crates.io

Documentation

API documentation is here.

Examples

```rust extern crate caresresolver; extern crate futures; use futures::executor::block_on;

fn main() { let resolver = caresresolver::FutureResolver::new().unwrap(); let query = resolver.querya("google.com"); let response = blockon(query); match response { Ok(result) => println!("{}", result), Err(e) => println!("Lookup failed with error '{}'", e) } } ```

Further example programs can be found here.

Contributing

Contributions are welcome. Please send pull requests!