resolve
is a pure Rust implementation of the DNS protocol.
It also provides high level facilities for hostname resolution and address reverse resolution.
Add this to your Cargo.toml
:
[dependencies]
resolve = "0.2"
And this to your crate root:
extern crate resolve;
resolve
is distributed under the terms of both the MIT license and the
Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.